aboutsummaryrefslogtreecommitdiff
path: root/src-qt5
diff options
context:
space:
mode:
authorKen Moore <ken@pcbsd.org>2016-09-08 13:45:12 -0400
committerKen Moore <ken@pcbsd.org>2016-09-08 13:45:12 -0400
commitbc72c4693b24c455209ffa2e8ff7828e6aafbe57 (patch)
treeb2eb388f599eb4bddd73e87abdc58aa06873add6 /src-qt5
parentFix up the "launch in terminal" functionality to use whatever the currently-r... (diff)
downloadlumina-bc72c4693b24c455209ffa2e8ff7828e6aafbe57.tar.gz
lumina-bc72c4693b24c455209ffa2e8ff7828e6aafbe57.tar.bz2
lumina-bc72c4693b24c455209ffa2e8ff7828e6aafbe57.zip
Add a new optional flag to lumina-open: "-terminal"
This flag will have lumina open automatically launch whatever the default terminal is for the user.
Diffstat (limited to 'src-qt5')
-rw-r--r--src-qt5/core/lumina-open/main.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src-qt5/core/lumina-open/main.cpp b/src-qt5/core/lumina-open/main.cpp
index cd0e4d65..756bef25 100644
--- a/src-qt5/core/lumina-open/main.cpp
+++ b/src-qt5/core/lumina-open/main.cpp
@@ -39,6 +39,7 @@ void printUsageInfo(){
qDebug() << " \"-volume[up/down]\" Flag to increase/decrease audio volume by 5%";
qDebug() << " \"-brightness[up/down]\" Flag to increase/decrease screen brightness by 5%";
qDebug() << " \"-autostart-apps\" Flag to launch all the various apps which are registered with XDG autostart specification";
+ qDebug() << "\"-terminal\" Flag to open the terminal currently set as the user's default";
exit(1);
}
@@ -212,6 +213,9 @@ void getCMD(int argc, char ** argv, QString& binary, QString& args, QString& pat
}else if( (QString(argv[i]).simplified() =="-action") && (argc>(i+1)) ){
ActionID = QString(argv[i+1]);
i++; //skip the next input
+ }else if(QString(argv[i]).simplified()=="-terminal"){
+ inFile = LXDG::findDefaultAppForMime("application/terminal");
+ break;
}else{
inFile = QString::fromLocal8Bit(argv[i]);
break;
bgstack15