fix upgrading from 0.12.5. Fixes #5619
This commit is contained in:
parent
52442fcf13
commit
4287d26669
1 changed files with 3 additions and 1 deletions
|
@ -704,7 +704,9 @@ class OptionsParser:
|
||||||
"""
|
"""
|
||||||
Remove hardcoded ../data/sounds from config
|
Remove hardcoded ../data/sounds from config
|
||||||
"""
|
"""
|
||||||
dirs = ('../data', gajim.gajimpaths.root, gajim.DATA_DIR)
|
dirs = ('../data', gajim.gajimpaths.data_root, gajim.DATA_DIR)
|
||||||
|
if os.name != 'nt':
|
||||||
|
dirs += (os.path.expanduser(u'~/.gajim'))
|
||||||
for evt in gajim.config.get_per('soundevents'):
|
for evt in gajim.config.get_per('soundevents'):
|
||||||
path = gajim.config.get_per('soundevents', evt, 'path')
|
path = gajim.config.get_per('soundevents', evt, 'path')
|
||||||
# absolute and relative passes are necessary
|
# absolute and relative passes are necessary
|
||||||
|
|
Loading…
Add table
Reference in a new issue