aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core-utils/lumina-xconfig/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src-qt5/core-utils/lumina-xconfig/main.cpp')
-rw-r--r--src-qt5/core-utils/lumina-xconfig/main.cpp16
1 files changed, 7 insertions, 9 deletions
diff --git a/src-qt5/core-utils/lumina-xconfig/main.cpp b/src-qt5/core-utils/lumina-xconfig/main.cpp
index 699665fb..f30486f4 100644
--- a/src-qt5/core-utils/lumina-xconfig/main.cpp
+++ b/src-qt5/core-utils/lumina-xconfig/main.cpp
@@ -9,20 +9,18 @@
#include <LuminaUtils.h>
#include <LuminaSingleApplication.h>
+#include "ScreenSettings.h"
int main(int argc, char ** argv)
{
- /*QStringList in;
+ bool CLIdone = false;
for(int i=1; i<argc; i++){ //skip the first arg (app binary)
- QString path = argv[i];
- if(path=="."){
- //Insert the current working directory
- in << QDir::currentPath();
- }else{
- if(!path.startsWith("/")){ path.prepend(QDir::currentPath()+"/"); }
- in << path;
+ if(QString(argv[i]) == "--reset-monitors"){
+ RRSettings::ApplyPrevious();
+ CLIdone = true;
+ break;
}
}
- if(in.isEmpty()){ in << QDir::homePath(); }*/
+ if(CLIdone){ return 0; }
LTHEME::LoadCustomEnvSettings();
LSingleApplication a(argc, argv, "lumina-xconfig"); //loads translations inside constructor
if( !a.isPrimaryProcess()){ return 0; }
bgstack15