diff options
author | Ken Moore <ken@pcbsd.org> | 2014-10-08 09:41:17 -0400 |
---|---|---|
committer | Ken Moore <ken@pcbsd.org> | 2014-10-08 09:41:17 -0400 |
commit | f1c3841b51d145e88556a658e5506bc3c4849751 (patch) | |
tree | 4c8a1da0fd5f4bce16ad7feec6167fb203aee97b /lumina-desktop | |
parent | Merge pull request #16 from Nanolx/side-work (diff) | |
download | lumina-f1c3841b51d145e88556a658e5506bc3c4849751.tar.gz lumina-f1c3841b51d145e88556a658e5506bc3c4849751.tar.bz2 lumina-f1c3841b51d145e88556a658e5506bc3c4849751.zip |
Clean up the default filemanager/terminal settings. Put them in the main session file (instead of desktop settings), and also have lumina-config safe it to the lumina-open defaults file directly (in the case of the file manager).
Diffstat (limited to 'lumina-desktop')
-rw-r--r-- | lumina-desktop/AppMenu.cpp | 6 | ||||
-rw-r--r-- | lumina-desktop/AppMenu.h | 1 | ||||
-rw-r--r-- | lumina-desktop/LDesktop.cpp | 4 |
3 files changed, 3 insertions, 8 deletions
diff --git a/lumina-desktop/AppMenu.cpp b/lumina-desktop/AppMenu.cpp index 2b14edec..da1f43c9 100644 --- a/lumina-desktop/AppMenu.cpp +++ b/lumina-desktop/AppMenu.cpp @@ -6,7 +6,6 @@ //=========================================== #include "AppMenu.h" #include "LSession.h" -#include "LDesktop.h" #include <LuminaOS.h> AppMenu::AppMenu(QWidget* parent) : QMenu(parent){ @@ -103,17 +102,14 @@ void AppMenu::watcherUpdate(){ void AppMenu::launchStore(){ LSession::LaunchApplication("lumina-open \""+appstorelink+"\""); - //QProcess::startDetached("lumina-open \""+appstorelink+"\""); } void AppMenu::launchControlPanel(){ LSession::LaunchApplication("lumina-open \""+controlpanellink+"\""); - //QProcess::startDetached("lumina-open \""+controlpanellink+"\""); } void AppMenu::launchFileManager(){ - QSettings::setPath(QSettings::NativeFormat, QSettings::UserScope, QDir::homePath()+"/.lumina"); - QString fm = QSettings("LuminaDE", "desktopsettings").value("default-filemanager","lumina-fm").toString(); + QString fm = LSession::sessionSettings()->value("default-filemanager","lumina-fm").toString(); LSession::LaunchApplication(fm); } diff --git a/lumina-desktop/AppMenu.h b/lumina-desktop/AppMenu.h index 2d737284..f3d3c3e5 100644 --- a/lumina-desktop/AppMenu.h +++ b/lumina-desktop/AppMenu.h @@ -35,7 +35,6 @@ public: QDateTime lastHashUpdate; private: - QSettings *settings; QFileSystemWatcher *watcher; QString appstorelink, controlpanellink; QList<QMenu> MLIST; diff --git a/lumina-desktop/LDesktop.cpp b/lumina-desktop/LDesktop.cpp index a76edb53..b230d375 100644 --- a/lumina-desktop/LDesktop.cpp +++ b/lumina-desktop/LDesktop.cpp @@ -86,12 +86,12 @@ void LDesktop::SystemLogout(){ } void LDesktop::SystemTerminal(){ - QString term = settings->value("default-terminal","xterm").toString(); + QString term = LSession::sessionSettings()->value("default-terminal","xterm").toString(); LSession::LaunchApplication(term); } void LDesktop::SystemFileManager(){ - QString fm = settings->value("default-filemanager","lumina-fm").toString(); + QString fm = LSession::sessionSettings()->value("default-filemanager","lumina-fm").toString(); LSession::LaunchApplication(fm); } |