GNOME Bugzilla – Bug 633896
Use XDG_DOCUMENTS_DIR as the default location for documents printed to files
Last modified: 2010-11-10 09:53:55 UTC
Created attachment 173768 [details] [review] Patch applied in Ubuntu to fix this bug. When I select 'Print to File' in a Gtkprintunixdialog, the default location for saving the file is the user's home folder. It should rightfully be the $XDG_DOCUMENTS_DIR of the system, for example, /home/username/Documents . Attached patch fixes issue. Ubuntu bug: https://bugs.launchpad.net/hundredpapercuts/+bug/611011
I think this makes sense. Also, It's related to this propossed GnomeGoal: http://live.gnome.org/GnomeGoals/PrintToFile
Created attachment 174133 [details] [review] print to G_USER_DIRECTORY_DOCUMENTS by default Hi, it seems logical to me. The attached patch changes the default directory from the current directory to the G_USER_DIRECTORY_DOCUMENTS for file backend. It is a different patch from the Ubuntu one. This sets the directory directly in the file backend. I left the print directory set to the current directory in the test backend, it makes sense there. Regards Marek
Review of attachment 174133 [details] [review]: The documents dir may not be set, so you need to check that and fall back to the previous location. Other than that, this looks fine.
Hi, > The documents dir may not be set, so you need to check that and fall back to > the previous location. Other than that, this looks fine. I'm sorry about that. I've modified the patch accordingly and committed it. Marek