Share account picture between different OSes
|Reported by:||renatosilva||Owned by:|
|Milestone:||Patches Needing Improvement||Component:||libpurple|
Description (last modified by renatosilva)
This simple patch allows one to share their account picture between operating systems with different path rules, such as Windows and Unixes. This is because when you save your account picture, Pidgin stores its full absolute path, so for example Windows does not recognize /home/user/me.png and Linux does not recognize C:/Users/User/Pictures/Me.png. Also, g_file_get_contents seems to only deal with absolute paths.
After patching, Pidgin will search for the path indicated by buddyicon configuration also within purple profile, in case loading as is fails, allowing users to set this option with paths relative to purple profile. Even if the operating system does not support forward slashes, users can still store picture in profile's root. It is needed to edit prefs.xml manually to remove absolute part from path, but I think this patch is reasonable already.