GNOME Bugzilla – Bug 677240
popup-commands: use g_get_user_special_dir API
Last modified: 2012-06-14 23:44:28 UTC
Don't hardcode "Pictures".
Created attachment 215376 [details] [review] popup-commands: use g_get_user_special_dir API "Pictures" was hardcoded as the destination folder, use G_USER_DIRECTORY_PICTURES instead.
Review of attachment 215376 [details] [review]: ::: src/popup-commands.c @@ +329,3 @@ base = g_path_get_basename (location); base_converted = g_filename_from_utf8 (base, -1, NULL, NULL, NULL); + dest = g_build_filename (g_get_user_special_dir (G_USER_DIRECTORY_PICTURES), base_converted, NULL); g_get_user_special_dir() /could/ eventually return NULL, but I am not entirely sure whether it's worth to go through the extra hassle to handle that case..
Review of attachment 215376 [details] [review]: Well this is not making things worse, so if we want to make the code more robust it can happen in another patch.
Attachment 215376 [details] pushed as d2d47f4 - popup-commands: use g_get_user_special_dir API