From c6d6587d8292cb78593536d1ca75ced620005c47 Mon Sep 17 00:00:00 2001 From: chrys Date: Sun, 2 Oct 2016 14:34:19 +0200 Subject: [PATCH] fix soundicons with different settingsroot --- src/fenrir-package/core/settingsManager.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/fenrir-package/core/settingsManager.py b/src/fenrir-package/core/settingsManager.py index 64a5682d..c24c65e5 100644 --- a/src/fenrir-package/core/settingsManager.py +++ b/src/fenrir-package/core/settingsManager.py @@ -57,6 +57,7 @@ class settingsManager(): kbConfig.close() def loadSoundIcons(self, soundIconPath): + print(soundIconPath + '/soundicons.conf') siConfig = open(soundIconPath + '/soundicons.conf',"r") while(True): line = siConfig.readline() @@ -183,8 +184,8 @@ class settingsManager(): if not os.path.exists(self.getSetting('sound','theme') + '/soundicons.conf'): if os.path.exists(settingsRoot + 'sound/'+ self.getSetting('sound','theme')): self.setSetting('sound', 'theme', settingsRoot + 'sound/'+ self.getSetting('sound','theme')) - if os.path.exists(settingsRoot + 'sound/'+ self.getSetting('sound','theme') + '/soundicons.conf'): - environment['runtime']['settingsManager'].loadSoundIcons(self.getSetting('sound','theme')) + if os.path.exists(self.getSetting('sound','theme') + '/soundicons.conf'): + environment['runtime']['settingsManager'].loadSoundIcons(self.getSetting('sound','theme')) else: environment['runtime']['settingsManager'].loadSoundIcons(self.getSetting('sound','theme'))