diff options
author | Ken Moore <moorekou@gmail.com> | 2016-06-08 18:39:09 -0400 |
---|---|---|
committer | Ken Moore <moorekou@gmail.com> | 2016-06-08 18:39:09 -0400 |
commit | 5c835e6906cffe08b629f3abd19bc2f746fbf88e (patch) | |
tree | 56e42c2488fcfd51b1c523fc92d204f8c42bd271 /src-qt5/core/libLumina/LuminaUtils.cpp | |
parent | Oops, forgot to add in a couple new files for lumina-xconfig. (diff) | |
parent | Move the lumina-open.conf file over to the standard XDG location (~/.config/l... (diff) | |
download | lumina-5c835e6906cffe08b629f3abd19bc2f746fbf88e.tar.gz lumina-5c835e6906cffe08b629f3abd19bc2f746fbf88e.tar.bz2 lumina-5c835e6906cffe08b629f3abd19bc2f746fbf88e.zip |
Merge branch 'master' of github.com:pcbsd/lumina
Diffstat (limited to 'src-qt5/core/libLumina/LuminaUtils.cpp')
-rw-r--r-- | src-qt5/core/libLumina/LuminaUtils.cpp | 15 |
1 files changed, 9 insertions, 6 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()){ |