aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/lumina-desktop/LDesktop.cpp
diff options
context:
space:
mode:
authorKen Moore <moorekou@gmail.com>2016-08-17 15:01:45 -0400
committerKen Moore <moorekou@gmail.com>2016-08-17 15:01:45 -0400
commitca2af75002ff5e88aebe8026e915e71d6a17c498 (patch)
tree0f88d0ab67bbac1760e8bc3fd79935ca115507be /src-qt5/core/lumina-desktop/LDesktop.cpp
parentMerge pull request #247 from Nanolx/master (diff)
downloadlumina-ca2af75002ff5e88aebe8026e915e71d6a17c498.tar.gz
lumina-ca2af75002ff5e88aebe8026e915e71d6a17c498.tar.bz2
lumina-ca2af75002ff5e88aebe8026e915e71d6a17c498.zip
A couple quick fixes:
1) Ensure that lumina-open is used to open the default terminal app (additional binary verification/checking) 2) Add some additional verification of the binary to run within lumina-open, and warn the user about a missing binary as needed.
Diffstat (limited to 'src-qt5/core/lumina-desktop/LDesktop.cpp')
-rw-r--r--src-qt5/core/lumina-desktop/LDesktop.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src-qt5/core/lumina-desktop/LDesktop.cpp b/src-qt5/core/lumina-desktop/LDesktop.cpp
index 0dd28f11..cf1fe25f 100644
--- a/src-qt5/core/lumina-desktop/LDesktop.cpp
+++ b/src-qt5/core/lumina-desktop/LDesktop.cpp
@@ -102,9 +102,8 @@ 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.endsWith(".desktop")){ term = "lumina-open \""+term+"\""; }
- else if(term.isEmpty() || !LUtils::isValidBinary(term)){ term = "xterm"; }
- LSession::LaunchApplication(term);
+ if(term.isEmpty() || !LUtils::isValidBinary(term)){ term = "xterm"; }
+ LSession::LaunchApplication("lumina-open \""+term+"\"");
}
void LDesktop::SystemFileManager(){
bgstack15