From 3e07e1b60b7df20f025a6e0dbbb69e2506aa725b Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Sat, 28 Jun 2014 12:56:30 +0000 Subject: added default configuration for lubuntu git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@4325 90c681e8-e032-0410-971d-27865f9a5e38 --- src/app/lxdesupport.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/app/lxdesupport.cpp') diff --git a/src/app/lxdesupport.cpp b/src/app/lxdesupport.cpp index ac814b1de..9fd737f50 100644 --- a/src/app/lxdesupport.cpp +++ b/src/app/lxdesupport.cpp @@ -33,14 +33,16 @@ void LXDESupport::load() config_dir = QDir::homePath() + "/.config/"; QString config_file = config_dir + "/lxsession/LXDE/desktop.conf"; + QString themeName = "nuoveXT2"; if(qgetenv("DESKTOP_SESSION") == "Lubuntu") { qDebug("LXDESupport: using Lubuntu configuration"); config_file = config_dir + "/lxsession/Lubuntu/desktop.conf"; + themeName = "lubuntu"; } QSettings lxde_settings(config_file, QSettings::IniFormat); - QString themeName = lxde_settings.value("GTK/sNet/IconThemeName", "nuoveXT2").toString(); + themeName = lxde_settings.value("GTK/sNet/IconThemeName", themeName).toString(); if(!themeName.isEmpty()) QIcon::setThemeName(themeName); } -- cgit v1.2.3-13-gbd6f