aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/libLumina/LuminaXDG.h
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2016-12-29 12:57:34 -0500
committerKen Moore <ken@ixsystems.com>2016-12-29 12:57:34 -0500
commit67f52893177748a5158bab013b9dd1b61c5744e0 (patch)
treee4a6bbb1c7b90fec7a3f3fe6a529fa8ebd891dad /src-qt5/core/libLumina/LuminaXDG.h
parentNew Feature for lumina-archiver: (diff)
downloadlumina-67f52893177748a5158bab013b9dd1b61c5744e0.tar.gz
lumina-67f52893177748a5158bab013b9dd1b61c5744e0.tar.bz2
lumina-67f52893177748a5158bab013b9dd1b61c5744e0.zip
Add a new function to the XDGDesktop class:
QString generateExec(QStringList inputfiles, QString ActionID); This will automatically evaluate the input file's syntax and adjust as needed for the application to recognize/run the file. Similarly it will perform all the substitutions and such as necessary to end up with a fully-formatted executable command which can easily be launched with QProcess as necessary.
Diffstat (limited to 'src-qt5/core/libLumina/LuminaXDG.h')
-rw-r--r--src-qt5/core/libLumina/LuminaXDG.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src-qt5/core/libLumina/LuminaXDG.h b/src-qt5/core/libLumina/LuminaXDG.h
index 1c86cedb..fbfd6fd4 100644
--- a/src-qt5/core/libLumina/LuminaXDG.h
+++ b/src-qt5/core/libLumina/LuminaXDG.h
@@ -78,7 +78,9 @@ public:
void sync(); //syncronize this structure with the backend file(as listed in the "filePath" variable)
bool isValid(bool showAll = true); //See if this is a valid .desktop entry (showAll: don't filter out based on DE exclude/include lists)
- QString getDesktopExec(QString ActionID = "");
+ QString getDesktopExec(QString ActionID = ""); //Just return the exec field with minimal cleanup
+ QString generateExec(QStringList inputfiles = QStringList(), QString ActionID = ""); //Format the exec command to account for input files
+
bool saveDesktopFile(bool merge = true); //This will use the "filePath" variable for where to save the file
bool setAutoStarted(bool autostart = true);
bgstack15