From bc72c4693b24c455209ffa2e8ff7828e6aafbe57 Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Thu, 8 Sep 2016 13:45:12 -0400 Subject: 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. --- src-qt5/core/lumina-open/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src-qt5/core/lumina-open/main.cpp') 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; -- cgit