aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/desktop-utils/lumina-fm/MainUI.cpp
diff options
context:
space:
mode:
authorq5sys <jt@xsystems.com>2017-10-24 17:30:02 -0400
committerq5sys <jt@xsystems.com>2017-10-24 17:30:02 -0400
commit11749b3b8eb4665098a0341312104e5b05c6f55c (patch)
tree29914b813a2b8d34dd9cf42f4835047103bccba4 /src-qt5/desktop-utils/lumina-fm/MainUI.cpp
parentwarning banner for running lumina-fm as root_ (diff)
downloadlumina-11749b3b8eb4665098a0341312104e5b05c6f55c.tar.gz
lumina-11749b3b8eb4665098a0341312104e5b05c6f55c.tar.bz2
lumina-11749b3b8eb4665098a0341312104e5b05c6f55c.zip
add logic for launching lumina-fm as root
Diffstat (limited to 'src-qt5/desktop-utils/lumina-fm/MainUI.cpp')
-rw-r--r--src-qt5/desktop-utils/lumina-fm/MainUI.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src-qt5/desktop-utils/lumina-fm/MainUI.cpp b/src-qt5/desktop-utils/lumina-fm/MainUI.cpp
index 50cc110a..2d4cfe84 100644
--- a/src-qt5/desktop-utils/lumina-fm/MainUI.cpp
+++ b/src-qt5/desktop-utils/lumina-fm/MainUI.cpp
@@ -14,6 +14,7 @@
#include <LUtils.h>
#include <LDesktopUtils.h>
+#include <ExternalProcess.h>
#define DEBUG 0
@@ -964,3 +965,8 @@ void MainUI::closeEvent(QCloseEvent *ev){
}
QMainWindow::closeEvent(ev); //continue normal close routine
}
+
+void MainUI::on_actionOpen_as_Root_triggered()
+{
+ ExternalProcess::launch("qsudo lumina-fm");
+}
bgstack15