[PATCH] Remove hardcoded paths to sounds files where they are in DATA_DIR
Hi!
Here three patches which improves how gajim deals with sounds files:
-
00_fix_sound_chooser_dialog.patch:
This fixes two bugs in sounds chooser dialog:
Cancel button clears the previously selected song, it should do nothing.
'last_sounds_dir' was never used.
-
01_remove_hardcoded_sounds_paths.patch:
Sounds paths are currently hardcoded in user config (eg: ../data/sounds/foo.wav).
This patch removes the path of the sound when it is under DATA_DIR/sounds/ (or possibly ~/.gajim/sounds/).
When a sound file is not found, gajim will automaticaly look into thoses knows directories.
So, users will only see the filename in the textfield ui, not the long path (of course, only, if the sound is in a knows paths).
-
02_migrate_for_sounds_paths.patch:
This is migrate the sounds paths to the new system.
Bruno.