aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core-utils/lumina-config
diff options
context:
space:
mode:
authorKen Moore <moorekou@gmail.com>2016-06-08 16:58:01 -0400
committerKen Moore <moorekou@gmail.com>2016-06-08 16:58:01 -0400
commit8420244ca6fcddd63f67eedbd20b5640f630ce24 (patch)
tree080fb4f315c4de2064af1b10905a2f9fbb656ae6 /src-qt5/core-utils/lumina-config
parentMove to using the "application/[email/terminal]" mimetypes for registering/fi... (diff)
downloadlumina-8420244ca6fcddd63f67eedbd20b5640f630ce24.tar.gz
lumina-8420244ca6fcddd63f67eedbd20b5640f630ce24.tar.bz2
lumina-8420244ca6fcddd63f67eedbd20b5640f630ce24.zip
Adjust the last couple utilities to use the new application/[terminal/email] mimetypes.
Diffstat (limited to 'src-qt5/core-utils/lumina-config')
-rw-r--r--src-qt5/core-utils/lumina-config/mainUI.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src-qt5/core-utils/lumina-config/mainUI.cpp b/src-qt5/core-utils/lumina-config/mainUI.cpp
index 5062a5ef..bd2bf695 100644
--- a/src-qt5/core-utils/lumina-config/mainUI.cpp
+++ b/src-qt5/core-utils/lumina-config/mainUI.cpp
@@ -1136,7 +1136,8 @@ void MainUI::changeDefaultEmail(){
desk.filePath="";
}
//save the new app setting and adjust the button appearance
- appsettings->setValue("default/email", desk.filePath);
+ LXDG::setDefaultAppForMime("application/email",desk.filePath);
+ // appsettings->setValue("default/email", desk.filePath);
QString tmp = desk.filePath;
if(tmp.endsWith(".desktop")){
bool ok = false;
@@ -1200,7 +1201,8 @@ void MainUI::changeDefaultTerminal(){
desk.filePath="xterm";
}
//save the new app setting and adjust the button appearance
- sessionsettings->setValue("default-terminal", desk.filePath);
+ LXDG::setDefaultAppForMime("application/terminal",desk.filePath);
+ //sessionsettings->setValue("default-terminal", desk.filePath);
QString tmp = desk.filePath;
if(tmp.endsWith(".desktop")){
bool ok = false;
@@ -1249,7 +1251,7 @@ void MainUI::loadDefaultSettings(){
ui->tool_default_filemanager->setIcon( LXDG::findIcon("application-x-executable","") );
}
// - Default Terminal
- tmp = sessionsettings->value("default-terminal", "xterm").toString();
+ tmp =LXDG::findDefaultAppForMime("application/terminal"); //sessionsettings->value("default-terminal", "xterm").toString();
if( !QFile::exists(tmp) && !LUtils::isValidBinary(tmp) ){ qDebug() << "Invalid Settings:" << tmp; tmp.clear(); } //invalid settings
if(tmp.endsWith(".desktop")){
bool ok = false;
@@ -1293,7 +1295,7 @@ void MainUI::loadDefaultSettings(){
ui->tool_default_webbrowser->setIcon( LXDG::findIcon("application-x-executable","") );
}
// - Default Email Client
- tmp = appsettings->value("default/email", "").toString();
+ tmp = LXDG::findDefaultAppForMime("application/email"); //appsettings->value("default/email", "").toString();
if( !QFile::exists(tmp) && !LUtils::isValidBinary(tmp) ){ qDebug() << "Invalid Settings:" << tmp; tmp.clear(); } //invalid settings
if(tmp.endsWith(".desktop")){
bool ok = false;
bgstack15