The fix for https://github.com/Dart-Code/Dart-Code/issues/4612 on macOS probably would work fine for Linux too.