Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #11451 - Add konsole as default terminal for KDE-plasma #11452

Merged
merged 1 commit into from
Sep 8, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/vs/workbench/parts/execution/electron-browser/terminal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ if (env.isLinux) {
defaultTerminalLinux = 'x-terminal-emulator';
} else if (process.env.DESKTOP_SESSION === 'gnome' || process.env.DESKTOP_SESSION === 'gnome-classic') {
defaultTerminalLinux = 'gnome-terminal';
} else if (process.env.DESKTOP_SESSION === 'kde-plasma') {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is plasma a version or something? If so can this be made more generic?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

plasma is the name of KDE's desktop manager, not a specific version.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So this if should be entered regardless of the specific distribution, as long as it's using KDE and not on Debian (due to the first case)? This comment I found concerns me a little, is there a more reliable environment variable if this can be the "default" on KDE Fedora?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Tyriar hmm, yeah I was only really thinking about improving Kubuntu. This whole section may need work if it's going to include desktop-manager specific code, even just to handle the major flavors.

That said, if old versions of KDE Fedora (or others) fall through the if, they're no worse off then they are now.

Another approach might be to have the workspace/user setting for the external terminal affect the debugger. When I tried setting it to konsole, there was no change in the "install gnome terminal" error message. Not sure if that's an issue in and of itself (or a feature) or what the side effects would be.

defaultTerminalLinux = 'konsole';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there some environment variable that houses this? konsole is the default terminal for this distribution, correct?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Tyriar I'm not a KDE expert, but none was present on my (fresh install) system. konsole is the default terminal for the distro.

} else if (process.env.COLORTERM) {
defaultTerminalLinux = process.env.COLORTERM;
} else if (process.env.TERM) {
Expand Down