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 | |
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')
-rw-r--r-- | src-qt5/desktop-utils/lumina-fm/MainUI.cpp | 6 | ||||
-rw-r--r-- | src-qt5/desktop-utils/lumina-fm/MainUI.h | 2 | ||||
-rw-r--r-- | src-qt5/desktop-utils/lumina-fm/MainUI.ui | 5 | ||||
-rw-r--r-- | src-qt5/desktop-utils/lumina-fm/widgets/DirWidget2.ui | 10 |
4 files changed, 22 insertions, 1 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"); +} diff --git a/src-qt5/desktop-utils/lumina-fm/MainUI.h b/src-qt5/desktop-utils/lumina-fm/MainUI.h index d03ca443..04e8199e 100644 --- a/src-qt5/desktop-utils/lumina-fm/MainUI.h +++ b/src-qt5/desktop-utils/lumina-fm/MainUI.h @@ -177,6 +177,8 @@ private slots: void TrayJobsFinished(); + void on_actionOpen_as_Root_triggered(); + signals: void Si_AdaptStatusBar(QFileInfoList fileList, QString path, QString messageFolders, QString messageFiles); diff --git a/src-qt5/desktop-utils/lumina-fm/MainUI.ui b/src-qt5/desktop-utils/lumina-fm/MainUI.ui index 744f31a3..56de9b7c 100644 --- a/src-qt5/desktop-utils/lumina-fm/MainUI.ui +++ b/src-qt5/desktop-utils/lumina-fm/MainUI.ui @@ -434,6 +434,11 @@ <string>Ctrl+P</string> </property> </action> + <action name="actionOpen_as_Root"> + <property name="text"> + <string>Open as Root</string> + </property> + </action> </widget> <resources/> <connections/> diff --git a/src-qt5/desktop-utils/lumina-fm/widgets/DirWidget2.ui b/src-qt5/desktop-utils/lumina-fm/widgets/DirWidget2.ui index b4d8d933..099fd91a 100644 --- a/src-qt5/desktop-utils/lumina-fm/widgets/DirWidget2.ui +++ b/src-qt5/desktop-utils/lumina-fm/widgets/DirWidget2.ui @@ -22,8 +22,16 @@ <layout class="QVBoxLayout" name="verticalLayout" stretch="0,0,0,1,0"> <item> <widget class="QLabel" name="label_rootmode"> + <property name="font"> + <font> + <family>Droid Sans Mono</family> + <weight>75</weight> + <italic>false</italic> + <bold>true</bold> + </font> + </property> <property name="text"> - <string>Warning - Running as Root</string> + <string> * - FILE MANAGER RUNNING AS ROOT- * </string> </property> <property name="alignment"> <set>Qt::AlignCenter</set> |