GNOME Bugzilla – Bug 681659
No screenshot in non-interactive mode when xdg-user-dirs-gtk is missing
Last modified: 2012-08-30 07:41:25 UTC
As reported here: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=676616 when "auto-save-directory" dconf key is not set, and "xdg-user-dirs-gtk" is not installed, non-interactive gnome-screenshot does not save any image, despite the shutter sound played.
Created attachment 220926 [details] [review] NULL default dir instead of file:// > shot_dir = g_strconcat ("file://", g_get_user_special_dir (G_USER_DIRECTORY_PICTURES), NULL); This results in "file://" when XDG_PICTURES_DIR is not set, which should be NULL instead.
Review of attachment 220926 [details] [review]: Thanks, looks good.
Committed. http://git.gnome.org/browse/gnome-screenshot/commit/?h=gnome-3-4&id=e114d4de0b77946f67a904b83c4dc284340ce297
g_strconcat, seriously? Why not use the correct g_filename_to_uri and avoid other errors of the same kind?