Skip to content
Snippets Groups Projects
Commit 4287d266 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

fix upgrading from 0.12.5. Fixes #5619

parent 52442fcf
No related branches found
No related tags found
No related merge requests found
......@@ -704,7 +704,9 @@ class OptionsParser:
"""
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'):
path = gajim.config.get_per('soundevents', evt, 'path')
# absolute and relative passes are necessary
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment