diff options
Diffstat (limited to 'src-qt5/desktop-utils/lumina-fm')
-rw-r--r-- | src-qt5/desktop-utils/lumina-fm/lumina-fm.pro | 1 | ||||
-rw-r--r-- | src-qt5/desktop-utils/lumina-fm/widgets/DirWidget2.cpp | 9 |
2 files changed, 7 insertions, 3 deletions
diff --git a/src-qt5/desktop-utils/lumina-fm/lumina-fm.pro b/src-qt5/desktop-utils/lumina-fm/lumina-fm.pro index a98161f0..f7253e84 100644 --- a/src-qt5/desktop-utils/lumina-fm/lumina-fm.pro +++ b/src-qt5/desktop-utils/lumina-fm/lumina-fm.pro @@ -14,6 +14,7 @@ include(../../core/libLumina/LDesktopUtils.pri) #includes LUtils include(../../core/libLumina/LuminaXDG.pri) include(../../core/libLumina/LuminaSingleApplication.pri) include(../../core/libLumina/LuminaThemes.pri) +include(../../core/libLumina/ExternalProcess.pri) SOURCES += main.cpp \ MainUI.cpp \ diff --git a/src-qt5/desktop-utils/lumina-fm/widgets/DirWidget2.cpp b/src-qt5/desktop-utils/lumina-fm/widgets/DirWidget2.cpp index 02b3c433..1e68ced0 100644 --- a/src-qt5/desktop-utils/lumina-fm/widgets/DirWidget2.cpp +++ b/src-qt5/desktop-utils/lumina-fm/widgets/DirWidget2.cpp @@ -22,6 +22,7 @@ #include <LuminaOS.h> #include <LuminaXDG.h> #include <LUtils.h> + #include <ExternalProcess.h> #include "../ScrollDialog.h" @@ -261,7 +262,7 @@ connect(kCopy, SIGNAL(activated()), this, SLOT(copyFiles()) ); connect(kPaste, SIGNAL(activated()), this, SLOT(pasteFiles()) ); connect(kRename, SIGNAL(activated()), this, SLOT(renameFiles()) ); - connect(kExtract, SIGNAL(activated()), this, SLOT(autoextractfiles()) ); + connect(kExtract, SIGNAL(activated()), this, SLOT(autoExtractFiles()) ); connect(kFav, SIGNAL(activated()), this, SLOT(favoriteFiles()) ); connect(kDel, SIGNAL(activated()), this, SLOT(removeFiles()) ); connect(kOpSS, SIGNAL(activated()), this, SLOT(openInSlideshow()) ); @@ -847,12 +848,14 @@ //---------------------------------------------------// void DirWidget::autoExtractFiles(){ - QProcess *pExtract= new QProcess(this); + QStringList files = currentBrowser()->currentSelection(); + ExternalProcess::launch("lumina-archiver", QStringList() << "--ax" << files); + /*ExternalProcess *pExtract= new ExternalProcess(this); QString program = "lumina-archiver --ax "; QStringList files = currentBrowser()->currentSelection(); for(int i=0; i<files.length(); i++){ QString runline = program + files[i]; - pExtract->start(runline); + pExtract->start(runline);*/ } //---------------------------------------------------// |