aboutsummaryrefslogtreecommitdiff
path: root/lumina-config
diff options
context:
space:
mode:
authorKen Moore <ken@pcbsd.org>2014-10-08 09:41:17 -0400
committerKen Moore <ken@pcbsd.org>2014-10-08 09:41:17 -0400
commitf1c3841b51d145e88556a658e5506bc3c4849751 (patch)
tree4c8a1da0fd5f4bce16ad7feec6167fb203aee97b /lumina-config
parentMerge pull request #16 from Nanolx/side-work (diff)
downloadlumina-f1c3841b51d145e88556a658e5506bc3c4849751.tar.gz
lumina-f1c3841b51d145e88556a658e5506bc3c4849751.tar.bz2
lumina-f1c3841b51d145e88556a658e5506bc3c4849751.zip
Clean up the default filemanager/terminal settings. Put them in the main session file (instead of desktop settings), and also have lumina-config safe it to the lumina-open defaults file directly (in the case of the file manager).
Diffstat (limited to 'lumina-config')
-rw-r--r--lumina-config/mainUI.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/lumina-config/mainUI.cpp b/lumina-config/mainUI.cpp
index ada56df2..df4b4d11 100644
--- a/lumina-config/mainUI.cpp
+++ b/lumina-config/mainUI.cpp
@@ -619,8 +619,9 @@ void MainUI::saveCurrentSettings(bool screenonly){
// Menu Page
if(modmenu && !screenonly){
- settings->setValue("default-terminal", ui->line_menu_term->text() );
- settings->setValue("default-filemanager", ui->line_menu_fm->text() );
+ sessionsettings->setValue("default-terminal", ui->line_menu_term->text() );
+ sessionsettings->setValue("default-filemanager", ui->line_menu_fm->text() );
+ appsettings->setValue("default/directory", ui->line_menu_fm->text() );
QStringList items;
for(int i=0; i<ui->list_menu->count(); i++){
items << ui->list_menu->item(i)->whatsThis();
@@ -1013,7 +1014,7 @@ void MainUI::findmenuterminal(){
void MainUI::findmenufilemanager(){
QString chkpath = LOS::AppPrefix() + "bin";
if(!QFile::exists(chkpath)){ chkpath = QDir::homePath(); }
- QString bin = QFileDialog::getOpenFileName(this, tr("Set Default File MAnager"), chkpath, tr("Application Binaries (*)") );
+ QString bin = QFileDialog::getOpenFileName(this, tr("Set Default File Manager"), chkpath, tr("Application Binaries (*)") );
if( bin.isEmpty() || !QFile::exists(bin) ){ return; } //cancelled
if( !QFileInfo(bin).isExecutable() ){
QMessageBox::warning(this, tr("Invalid Binary"), tr("The selected file is not executable!"));
@@ -1028,8 +1029,8 @@ void MainUI::checkmenuicons(){
ui->tool_menu_up->setEnabled( ui->list_menu->currentRow() > 0 );
ui->tool_menu_dn->setEnabled( ui->list_menu->currentRow() < (ui->list_menu->count()-1) );
ui->tool_menu_rm->setEnabled( ui->list_menu->currentRow() >=0 );
- if( settings->value("default-terminal","").toString() != ui->line_menu_term->text() ||
- settings->value("default-filemanager","").toString() != ui->line_menu_fm->text()){
+ if( sessionsettings->value("default-terminal","xterm").toString() != ui->line_menu_term->text() ||
+ sessionsettings->value("default-filemanager","lumina-fm").toString() != ui->line_menu_fm->text()){
ui->push_save->setEnabled(true);
modmenu = true;
}
bgstack15