make fenrir find /usr/share/sounds/fenrir/ soundpath
This commit is contained in:
parent
a7e397d0b4
commit
6799a558e5
@ -202,8 +202,8 @@ class settingsManager():
|
|||||||
else:
|
else:
|
||||||
return None
|
return None
|
||||||
if not os.path.exists(soundRoot):
|
if not os.path.exists(soundRoot):
|
||||||
if os.path.exists(os.path.dirname(os.path.realpath(__main__.__file__)) +'/../../config/'):
|
if os.path.exists(os.path.dirname(os.path.realpath(__main__.__file__)) +'/../../config/sound/'):
|
||||||
soundRoot = os.path.dirname(os.path.realpath(__main__.__file__)) +'/../../config/'
|
soundRoot = os.path.dirname(os.path.realpath(__main__.__file__)) +'/../../config/sound/'
|
||||||
|
|
||||||
environment['runtime']['settingsManager'] = self
|
environment['runtime']['settingsManager'] = self
|
||||||
environment['runtime']['settingsManager'].initialize(environment)
|
environment['runtime']['settingsManager'].initialize(environment)
|
||||||
@ -226,8 +226,8 @@ class settingsManager():
|
|||||||
environment['runtime']['settingsManager'].loadShortcuts(self.getSetting('keyboard','keyboardLayout'))
|
environment['runtime']['settingsManager'].loadShortcuts(self.getSetting('keyboard','keyboardLayout'))
|
||||||
|
|
||||||
if not os.path.exists(self.getSetting('sound','theme') + '/soundicons.conf'):
|
if not os.path.exists(self.getSetting('sound','theme') + '/soundicons.conf'):
|
||||||
if os.path.exists(soundRoot + 'sound/'+ self.getSetting('sound','theme')):
|
if os.path.exists(soundRoot + self.getSetting('sound','theme')):
|
||||||
self.setSetting('sound', 'theme', soundRoot + 'sound/'+ self.getSetting('sound','theme'))
|
self.setSetting('sound', 'theme', soundRoot + self.getSetting('sound','theme'))
|
||||||
if os.path.exists(self.getSetting('sound','theme') + '/soundicons.conf'):
|
if os.path.exists(self.getSetting('sound','theme') + '/soundicons.conf'):
|
||||||
environment['runtime']['settingsManager'].loadSoundIcons(self.getSetting('sound','theme'))
|
environment['runtime']['settingsManager'].loadSoundIcons(self.getSetting('sound','theme'))
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user