From f6bb0b0e52214a7235cc64dc7a52fb4fbaa61a3c Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Tue, 14 Jun 2016 13:21:29 -0400 Subject: Another large batch of updates: 1) Move the "runtime" directory in the users home to the XDG_CONFIG_HOME/lumina-desktop rather than ~/.lumina 2) Update the Glass theme a bit more. --- src-qt5/core-utils/lumina-config/mainUI.cpp | 19 +++++++++---------- src-qt5/core-utils/lumina-search/MainUI.cpp | 3 +-- 2 files changed, 10 insertions(+), 12 deletions(-) (limited to 'src-qt5/core-utils') diff --git a/src-qt5/core-utils/lumina-config/mainUI.cpp b/src-qt5/core-utils/lumina-config/mainUI.cpp index bd2bf695..4bb07c9a 100644 --- a/src-qt5/core-utils/lumina-config/mainUI.cpp +++ b/src-qt5/core-utils/lumina-config/mainUI.cpp @@ -23,10 +23,9 @@ MainUI::MainUI() : QMainWindow(), ui(new Ui::MainUI()){ panadjust = false; DEFAULTBG = LOS::LuminaShare()+"desktop-background.jpg"; //Be careful about the QSettings setup, it must match the lumina-desktop setup - QSettings::setPath(QSettings::NativeFormat, QSettings::UserScope, QDir::homePath()+"/.lumina"); - settings = new QSettings( QSettings::UserScope, "LuminaDE", "desktopsettings", this); - appsettings = new QSettings( QSettings::UserScope, "LuminaDE", "lumina-open", this); - sessionsettings = new QSettings( QSettings::UserScope, "LuminaDE","sessionsettings", this); + settings = new QSettings( QSettings::UserScope, "lumina-desktop", "desktopsettings", this); + appsettings = new QSettings( QSettings::UserScope, "lumina-desktop", "lumina-open", this); + sessionsettings = new QSettings( QSettings::UserScope, "lumina-desktop","sessionsettings", this); qDebug() << "Settings File:" << settings->fileName(); desktop = new QDesktopWidget(); ui->spin_screen->setMinimum(1); @@ -994,7 +993,7 @@ void MainUI::checkmenuicons(){ //=========== void MainUI::loadKeyboardShortcuts(){ ui->tree_shortcut->clear(); - QStringList info = readFile(QDir::homePath()+"/.lumina/fluxbox-keys"); + QStringList info = readFile(QString(getenv("XDG_CONFIG_HOME"))+"/lumina-desktop/fluxbox-keys"); //First take care of the special Lumina options QStringList special; special << "Exec lumina-open -volumeup::::"+tr("Audio Volume Up") \ @@ -1041,7 +1040,7 @@ void MainUI::saveKeyboardShortcuts(){ current << it->whatsThis(1)+" :"+it->whatsThis(0); //Full Fluxbox command line } - QStringList info = readFile(QDir::homePath()+"/.lumina/fluxbox-keys"); + QStringList info = readFile(QString(getenv("XDG_CONFIG_HOME"))+"/lumina-desktop/fluxbox-keys"); for(int i=0; i 0){ @@ -1056,7 +1055,7 @@ void MainUI::saveKeyboardShortcuts(){ for(int i=0; icombo_session_wloc->itemData( ui->combo_session_wloc->currentIndex() ).toString(); @@ -1627,7 +1626,7 @@ void MainUI::saveSessionSettings(){ else{ FB[index] = line; } //replace the current setting with the new one //Save the fluxbox settings - bool ok = overwriteFile(QDir::homePath()+"/.lumina/fluxbox-init", FB); + bool ok = overwriteFile(QString(getenv("XDG_CONFIG_HOME"))+"/lumina-desktop/fluxbox-init", FB); if(!ok){ qDebug() << "Warning: Could not save ~/.lumina/fluxbox-init"; } //Now do the start apps diff --git a/src-qt5/core-utils/lumina-search/MainUI.cpp b/src-qt5/core-utils/lumina-search/MainUI.cpp index 363d788e..99b04b2b 100644 --- a/src-qt5/core-utils/lumina-search/MainUI.cpp +++ b/src-qt5/core-utils/lumina-search/MainUI.cpp @@ -46,8 +46,7 @@ MainUI::MainUI() : QMainWindow(), ui(new Ui::MainUI){ connect(closeShort, SIGNAL(activated()), this, SLOT( close() ) ); //Setup the settings file - QSettings::setPath(QSettings::NativeFormat, QSettings::UserScope, QDir::homePath()+"/.lumina"); - settings = new QSettings("LuminaDE", "lumina-search",this); + settings = new QSettings("lumina-desktop", "lumina-search",this); searcher->startDir = settings->value("StartSearchDir", QDir::homePath()).toString(); searcher->skipDirs = settings->value("SkipSearchDirs", QStringList()).toStringList(); updateDefaultStatusTip(); -- cgit