diff options
author | Ken Moore <ken@pcbsd.org> | 2016-08-23 07:46:38 -0400 |
---|---|---|
committer | Ken Moore <ken@pcbsd.org> | 2016-08-23 07:46:38 -0400 |
commit | 375a0e10bc04b25efcc4b17f97089552a9b1ef24 (patch) | |
tree | b656803db0332cb5de84e898cd0238ee64f10939 /src-qt5/core/lumina-desktop/LDesktop.cpp | |
parent | Add some extra checks to the LuminaXDG application listing routine for when i... (diff) | |
download | lumina-375a0e10bc04b25efcc4b17f97089552a9b1ef24.tar.gz lumina-375a0e10bc04b25efcc4b17f97089552a9b1ef24.tar.bz2 lumina-375a0e10bc04b25efcc4b17f97089552a9b1ef24.zip |
Fix up the right-click terminal launcher - don't check for a valid binary if the entry is a .desktop entry (non-binary)
Diffstat (limited to 'src-qt5/core/lumina-desktop/LDesktop.cpp')
-rw-r--r-- | src-qt5/core/lumina-desktop/LDesktop.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src-qt5/core/lumina-desktop/LDesktop.cpp b/src-qt5/core/lumina-desktop/LDesktop.cpp index cf1fe25f..e3d946d4 100644 --- a/src-qt5/core/lumina-desktop/LDesktop.cpp +++ b/src-qt5/core/lumina-desktop/LDesktop.cpp @@ -102,7 +102,7 @@ void LDesktop::SystemLogout(){ void LDesktop::SystemTerminal(){ LSession::handle()->sessionSettings()->sync(); //make sure it is up to date QString term = LXDG::findDefaultAppForMime("application/terminal"); //LSession::handle()->sessionSettings()->value("default-terminal","xterm").toString(); - if(term.isEmpty() || !LUtils::isValidBinary(term)){ term = "xterm"; } + if(term.isEmpty() ||(!term.endsWith(".desktop") && !LUtils::isValidBinary(term)) ){ term = "xterm"; } LSession::LaunchApplication("lumina-open \""+term+"\""); } |