aboutsummaryrefslogtreecommitdiff
path: root/lumina-desktop
diff options
context:
space:
mode:
Diffstat (limited to 'lumina-desktop')
-rw-r--r--lumina-desktop/AppMenu.cpp6
-rw-r--r--lumina-desktop/AppMenu.h8
-rw-r--r--lumina-desktop/LDesktop.cpp3
3 files changed, 11 insertions, 6 deletions
diff --git a/lumina-desktop/AppMenu.cpp b/lumina-desktop/AppMenu.cpp
index 496d0932..2b14edec 100644
--- a/lumina-desktop/AppMenu.cpp
+++ b/lumina-desktop/AppMenu.cpp
@@ -6,6 +6,7 @@
//===========================================
#include "AppMenu.h"
#include "LSession.h"
+#include "LDesktop.h"
#include <LuminaOS.h>
AppMenu::AppMenu(QWidget* parent) : QMenu(parent){
@@ -111,8 +112,9 @@ void AppMenu::launchControlPanel(){
}
void AppMenu::launchFileManager(){
- LSession::LaunchApplication("lumina-fm");
- //QProcess::startDetached("lumina-fm");
+ QSettings::setPath(QSettings::NativeFormat, QSettings::UserScope, QDir::homePath()+"/.lumina");
+ QString fm = QSettings("LuminaDE", "desktopsettings").value("default-filemanager","lumina-fm").toString();
+ LSession::LaunchApplication(fm);
}
void AppMenu::launchApp(QAction *act){
diff --git a/lumina-desktop/AppMenu.h b/lumina-desktop/AppMenu.h
index 1657d9e2..2d737284 100644
--- a/lumina-desktop/AppMenu.h
+++ b/lumina-desktop/AppMenu.h
@@ -19,6 +19,7 @@
#include <QDateTime>
#include <QHash>
#include <QAction>
+#include <QSettings>
//#include <QProcess>
// libLumina includes
@@ -29,18 +30,19 @@ class AppMenu : public QMenu{
public:
AppMenu(QWidget *parent = 0);
~AppMenu();
-
+
QHash<QString, QList<XDGDesktop> > *currentAppHash();
QDateTime lastHashUpdate;
private:
+ QSettings *settings;
QFileSystemWatcher *watcher;
QString appstorelink, controlpanellink;
QList<QMenu> MLIST;
QHash<QString, QList<XDGDesktop> > APPS;
-
+
void updateAppList(); //completely update the menu lists
-
+
private slots:
void start(); //This is called in a new thread after initialization
void watcherUpdate();
diff --git a/lumina-desktop/LDesktop.cpp b/lumina-desktop/LDesktop.cpp
index 22606cf4..a76edb53 100644
--- a/lumina-desktop/LDesktop.cpp
+++ b/lumina-desktop/LDesktop.cpp
@@ -91,7 +91,8 @@ void LDesktop::SystemTerminal(){
}
void LDesktop::SystemFileManager(){
- LSession::LaunchApplication("lumina-fm");
+ QString fm = settings->value("default-filemanager","lumina-fm").toString();
+ LSession::LaunchApplication(fm);
}
void LDesktop::SystemApplication(QAction* act){
bgstack15