aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/desktop-utils/lumina-fm
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2017-06-16 13:06:31 -0400
committerKen Moore <ken@ixsystems.com>2017-06-16 13:06:31 -0400
commitaf6878d42b8868299f9b113a47a8102b287fd194 (patch)
treebc712b79bb58d4093a512a392873c3bcb9fcdf45 /src-qt5/desktop-utils/lumina-fm
parentMerge branch 'master' of http://github.com/trueos/lumina (diff)
downloadlumina-af6878d42b8868299f9b113a47a8102b287fd194.tar.gz
lumina-af6878d42b8868299f9b113a47a8102b287fd194.tar.bz2
lumina-af6878d42b8868299f9b113a47a8102b287fd194.zip
Clean up the auto-extract functionality in lumina-fm
Diffstat (limited to 'src-qt5/desktop-utils/lumina-fm')
-rw-r--r--src-qt5/desktop-utils/lumina-fm/lumina-fm.pro1
-rw-r--r--src-qt5/desktop-utils/lumina-fm/widgets/DirWidget2.cpp9
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);*/
}
//---------------------------------------------------//
bgstack15