diff options
author | q5sys <jt@xsystems.com> | 2017-10-24 17:30:02 -0400 |
---|---|---|
committer | q5sys <jt@xsystems.com> | 2017-10-24 17:30:02 -0400 |
commit | 11749b3b8eb4665098a0341312104e5b05c6f55c (patch) | |
tree | 29914b813a2b8d34dd9cf42f4835047103bccba4 /src-qt5/desktop-utils/lumina-fm/MainUI.cpp | |
parent | warning banner for running lumina-fm as root_ (diff) | |
download | lumina-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.cpp | 6 |
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"); +} |