diff options
author | Ken Moore <ken@ixsystems.com> | 2016-12-29 11:29:38 -0500 |
---|---|---|
committer | Ken Moore <ken@ixsystems.com> | 2016-12-29 11:29:38 -0500 |
commit | 3b4c76aa6f99275dbd625fc5050998d566117ee9 (patch) | |
tree | bab1debaa44592d1b516eef79e27d17e580ddedf /src-qt5/desktop-utils/lumina-archiver/main.cpp | |
parent | Merge branch 'master' of github.com:trueos/lumina (diff) | |
download | lumina-3b4c76aa6f99275dbd625fc5050998d566117ee9.tar.gz lumina-3b4c76aa6f99275dbd625fc5050998d566117ee9.tar.bz2 lumina-3b4c76aa6f99275dbd625fc5050998d566117ee9.zip |
New Feature for lumina-archiver:
If a *.img file is loaded, enable a new menu option/dialog for burning that image to a USB device.
This is a front-end to the "dd" utility, and has full status reporting about the process as well. If the dd operation requires elevated permissions and qsudo is installed, also provide a prompt for switching to root permissions (with qsudo) and immediately re-opening the burn dialog with the same file.
Diffstat (limited to 'src-qt5/desktop-utils/lumina-archiver/main.cpp')
-rw-r--r-- | src-qt5/desktop-utils/lumina-archiver/main.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src-qt5/desktop-utils/lumina-archiver/main.cpp b/src-qt5/desktop-utils/lumina-archiver/main.cpp index ccd85902..4f9a4bc5 100644 --- a/src-qt5/desktop-utils/lumina-archiver/main.cpp +++ b/src-qt5/desktop-utils/lumina-archiver/main.cpp @@ -19,7 +19,8 @@ int main(int argc, char *argv[]) { //Now go ahead and setup the app QStringList args; for(int i=1; i<argc; i++){ - args << LUtils::PathToAbsolute( QString(argv[i]) ); + if( QString(argv[i]).startsWith("--") ){ args << QString(argv[i]); } + else{ args << LUtils::PathToAbsolute( QString(argv[i]) ); } } //Now start the window MainUI W; |