From 375a0e10bc04b25efcc4b17f97089552a9b1ef24 Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Tue, 23 Aug 2016 07:46:38 -0400 Subject: Fix up the right-click terminal launcher - don't check for a valid binary if the entry is a .desktop entry (non-binary) --- src-qt5/core/lumina-desktop/LDesktop.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src-qt5/core/lumina-desktop/LDesktop.cpp') 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+"\""); } -- cgit