aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core-utils/lumina-xconfig/main.cpp
diff options
context:
space:
mode:
authorKen Moore <moorekou@gmail.com>2016-06-06 15:05:36 -0400
committerKen Moore <moorekou@gmail.com>2016-06-06 15:05:36 -0400
commit02a1c0e3a9e380d336ee8538436c313fd501c730 (patch)
treecf709b375c028e5bb9d6100a7f97c59b9c80fd80 /src-qt5/core-utils/lumina-xconfig/main.cpp
parentMake sure that lumina-fm will also remove broken symlinks when deleting a dir... (diff)
downloadlumina-02a1c0e3a9e380d336ee8538436c313fd501c730.tar.gz
lumina-02a1c0e3a9e380d336ee8538436c313fd501c730.tar.bz2
lumina-02a1c0e3a9e380d336ee8538436c313fd501c730.zip
Update lumina-xconfig (and lumina-session) so that it saves/reloads the previous display configuration on Lumina start.
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