fix soundicons with different settingsroot

This commit is contained in:
chrys 2016-10-02 14:34:19 +02:00
parent c56bde1c61
commit c6d6587d82

View File

@ -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,7 +184,7 @@ 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'):
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'))