aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core
diff options
context:
space:
mode:
authorKen Moore <moorekou@gmail.com>2016-06-08 16:41:31 -0400
committerKen Moore <moorekou@gmail.com>2016-06-08 16:41:31 -0400
commit911ef5bfce34ebcd8bc3fc6507108dc384d52de2 (patch)
tree6e6979a4626fb34ff25518510912e20c799a4e53 /src-qt5/core
parentFix up the detection/usage of the "mailto:" option in lumina-open. This also ... (diff)
downloadlumina-911ef5bfce34ebcd8bc3fc6507108dc384d52de2.tar.gz
lumina-911ef5bfce34ebcd8bc3fc6507108dc384d52de2.tar.bz2
lumina-911ef5bfce34ebcd8bc3fc6507108dc384d52de2.zip
Move to using the "application/[email/terminal]" mimetypes for registering/finding the default email/terminal applications.
Diffstat (limited to 'src-qt5/core')
-rw-r--r--src-qt5/core/libLumina/LuminaUtils.cpp15
-rw-r--r--src-qt5/core/lumina-desktop/LDesktop.cpp2
2 files changed, 10 insertions, 7 deletions
diff --git a/src-qt5/core/libLumina/LuminaUtils.cpp b/src-qt5/core/libLumina/LuminaUtils.cpp
index 5340d223..28ef5ad3 100644
--- a/src-qt5/core/libLumina/LuminaUtils.cpp
+++ b/src-qt5/core/libLumina/LuminaUtils.cpp
@@ -623,17 +623,20 @@ void LUtils::LoadSystemDefaults(bool skipOS){
if(var=="session_enablenumlock"){ sset = "EnableNumlock="+ istrue; }
else if(var=="session_playloginaudio"){ sset = "PlayStartupAudio="+istrue; }
else if(var=="session_playlogoutaudio"){ sset = "PlayLogoutAudio="+istrue; }
- else if(var=="session_default_terminal"){ sset = "default-terminal="+val; }
- else if(var=="session_default_filemanager"){
+ else if(var=="session_default_terminal"){
+ LXDG::setDefaultAppForMime("application/terminal", val);
+ //sset = "default-terminal="+val;
+ }else if(var=="session_default_filemanager"){
LXDG::setDefaultAppForMime("inode/directory", val);
- sset = "default-filemanager="+val;
- loset = "directory="+val;
+ //sset = "default-filemanager="+val;
+ //loset = "directory="+val;
}else if(var=="session_default_webbrowser"){
- loset = "webbrowser="+val;
+ //loset = "webbrowser="+val;
LXDG::setDefaultAppForMime("x-scheme-handler/http", val);
LXDG::setDefaultAppForMime("x-scheme-handler/https", val);
}else if(var=="session_default_email"){
- loset = "email="+val;
+ LXDG::setDefaultAppForMime("application/email",val);
+ //loset = "email="+val;
}
//Put the line into the file (overwriting any previous assignment as necessary)
if(!loset.isEmpty()){
diff --git a/src-qt5/core/lumina-desktop/LDesktop.cpp b/src-qt5/core/lumina-desktop/LDesktop.cpp
index 113b7efc..11d99581 100644
--- a/src-qt5/core/lumina-desktop/LDesktop.cpp
+++ b/src-qt5/core/lumina-desktop/LDesktop.cpp
@@ -104,7 +104,7 @@ void LDesktop::SystemLogout(){
void LDesktop::SystemTerminal(){
LSession::handle()->sessionSettings()->sync(); //make sure it is up to date
- QString term = LSession::handle()->sessionSettings()->value("default-terminal","xterm").toString();
+ QString term = LXDG::findDefaultAppForMime("application/terminal"); //LSession::handle()->sessionSettings()->value("default-terminal","xterm").toString();
if(term.endsWith(".desktop")){ term = "lumina-open \""+term+"\""; }
LSession::LaunchApplication(term);
}
bgstack15