Printing to File should go to $XDG_DOCUMENTS_DIR instead of $HOME

Reported by SpecialFred on 2010-07-28
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
CUPS
Invalid
Undecided
Unassigned
GTK+
Fix Released
Medium
One Hundred Papercuts
Low
Bilal Akhtar
gtk+2.0 (Ubuntu)
Low
Bilal Akhtar
gtk+3.0 (Ubuntu)
Low
Bilal Akhtar

Bug Description

Printing to PDF currently defaults to saving the document in the user's home folder. A more appropriate place would be into the user's documents folder.

To reproduce:
1. Open a program that can print. In this example, we will use Firefox.
2. Navigate to any page.
3. Navigate to File -> Print and select Print.
4. Select Print to File.
5. Observe that the default folder is the home folder.

Sense Egbert Hofstede (sense) wrote :

Thank you for helping with making Ubuntu better by reporting this bug. After some discussion on IRC we agree that it would be better if CUPS would 'print' files to $XDG_DOCUMENTS_DIR instead of $HOME. I'm accepting this as a paper cut.

Changed in hundredpapercuts:
importance: Undecided → Low
milestone: none → maverick-round-2-office
status: New → Triaged
Changed in cups (Ubuntu):
importance: Undecided → Low
status: New → Confirmed
summary: - Printing to file defaults to inappropriate folder
+ Printing to File should go to $XDG_DOCUMENTS_DIR instead of $HOME
Vish (vish) wrote :

This bug is an upstream one and it would be quite helpful if somebody experiencing it could send the bug the to the people writing the software. You can learn more about how to do this for various upstreams at https://wiki.ubuntu.com/Bugs/Upstream. Thanks in advance!

Changed in hundredpapercuts:
status: Triaged → In Progress
Changed in cups (Ubuntu):
status: Confirmed → In Progress
assignee: nobody → Bilal Akhtar (bilalakhtar)
Changed in hundredpapercuts:
assignee: nobody → Bilal Akhtar (bilalakhtar)
Changed in cups (Ubuntu):
status: In Progress → Triaged
status: Triaged → In Progress
Bilal Akhtar (bilalakhtar) wrote :

This problem actually affects gtk and not cups. So, I am unable to fix it.

affects: cups (Ubuntu) → gtk+2.0 (Ubuntu)
Changed in gtk+2.0 (Ubuntu):
assignee: Bilal Akhtar (bilalakhtar) → nobody
status: In Progress → Confirmed
Changed in hundredpapercuts:
status: In Progress → Triaged
assignee: Bilal Akhtar (bilalakhtar) → nobody
Andrew (and471) on 2010-08-23
Changed in cups:
status: New → Invalid
Andrew (and471) wrote :

(Marked invalid, per Bilal's comment)

Changed in hundredpapercuts:
assignee: nobody → Bilal Akhtar (bilalakhtar)
status: Triaged → In Progress
Changed in gtk+2.0 (Ubuntu):
assignee: nobody → Bilal Akhtar (bilalakhtar)
status: Confirmed → In Progress
Bilal Akhtar (bilalakhtar) wrote :

Will forward bug to upstream along with patch soon.

Changed in gtk:
status: New → Confirmed
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gtk+2.0 - 2.22.0-0ubuntu4

---------------
gtk+2.0 (2.22.0-0ubuntu4) natty; urgency=low

  * debian/patches/092_default_to_xdg_document_dir.patch:
    - Use $XDG_DOCUMENTS_DIR as default directory rather than the home
      directory for the 'Print to File' function. (LP: #611011)
 -- Bilal Akhtar <email address hidden> Tue, 02 Nov 2010 19:15:45 +0300

Changed in gtk+2.0 (Ubuntu):
status: In Progress → Fix Released
Robert Ancell (robert-ancell) wrote :

Note the patch is for GTK2, the same patch will need to be applied for GTK3.

Bilal Akhtar (bilalakhtar) wrote :

Yoo hoo!

Changed in hundredpapercuts:
status: In Progress → Fix Released
Bilal Akhtar (bilalakhtar) wrote :

Making patch for GTK3, as per Robert's comment.

Sebastien Bacher (seb128) wrote :

Did you send the patch upstream yet? If not could you do it now?

Changed in gtk:
importance: Undecided → Unknown
status: Confirmed → Unknown
Changed in gtk:
importance: Unknown → Medium
status: Unknown → New
Bilal Akhtar (bilalakhtar) wrote :

Linked branch contains fix for GTK3

Bilal Akhtar (bilalakhtar) wrote :

Fixed in gtk+3.0 package as well:

gtk+3.0 (2.91.3-0ubuntu1) natty; urgency=low

  [ Michael Terry ]
  * debian/libgtk3.0-0.symbols:
    - Fix some symbols that had debian versioning cruft
  * debian/rules:
    - Set introspection=no for non-shared build
  * debian/libgtk3.0-doc.doc-base.gtk-faq:
    - Dropped, as faq docs are no longer shipped
  * debian/libgtk3.0-doc.doc-base.gtk.in:
    - Rename to just .gtk and specify DOC_PKG manually. Many other files
      hardcode it anyway and it was confusing the build system.
  * debian/libgtk3.0-doc.links.in:
    - Drop non-existant faq doc symlink
  * debian/libgail3.0-doc.links:
    - Update directories to match where the source installs docs
  * debian/libgail3.0-doc.doc-base.gail-reference:
    - Fix document name to not conflict with 2.0 version
    - Update directories to match where the source installs docs

  [ Bilal Akhtar ]
  * debian/patches/092_default_to_xdg_document_dir.patch:
    - Use $XDG_DOCUMENTS_DIR as default directory rather than the home
      directory for the 'Print to File' function. (LP: #611011)

https://launchpad.net/ubuntu/+source/gtk+3.0/2.91.3-0ubuntu1

Changed in gtk+3.0 (Ubuntu):
assignee: nobody → Bilal Akhtar (bilalakhtar)
importance: Undecided → Low
status: New → Fix Released
Changed in gtk:
status: New → Fix Released
Changed in hundredpapercuts:
milestone: maverick-round-2-office → nt5-office
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.