-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* XdgDesktopFile: Add a public tryExec method It should be public. The functionality already existed in the private checkTryExec() function. Code updated to use QStandardPaths::findExecutable(). It does a better job. * Adds a default terminal implementation xdg-utils doesn't provide a utility script to open the registered terminal emulator. xdg-terminal exists since 2006 but it didn't make to the first league. A Desktop environment should give it's user the power of choice. So we implemented it. The default terminal emulator is stored in qtxdg.conf files, which can be stored in several locations. QSettings own search order is used. Additionally, it is possible to define desktop environment-specific default terminal in a file named desktop-qtxdg.conf where desktop is the name of the desktop environment (taken from XDG_CURRENT_DESKTOP environment variable). For example, ~/.config/lxqt-qtxdg.conf defines user specific default terminal override for LXQt. These desktop-specific overrides take precedence over the corresponding non-desktop-specific file. If the desktop-specific file isn't found the non-specific will *not* be used.
- Loading branch information
1 parent
2fa794d
commit c3dfba9
Showing
11 changed files
with
369 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
TerminalEmulator=qterminal.desktop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
TerminalEmulator=xterm.desktop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.