After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 707190 - Print to file: good filename by default
Print to file: good filename by default
Status: RESOLVED FIXED
Product: gedit
Classification: Applications
Component: general
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: Gedit maintainers
Gedit maintainers
Depends on:
Blocks:
 
 
Reported: 2013-08-31 17:47 UTC by madan_ram@rocketmail.com
Modified: 2013-11-04 12:34 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Print to file: fix default output filename (1.10 KB, patch)
2013-11-03 19:33 UTC, Sébastien Wilmet
accepted-commit_now Details | Review

Description madan_ram@rocketmail.com 2013-08-31 17:47:54 UTC
whenever i try to convert a text to pdf i use print option in gedit.
Then select pdf formate and click print.
but the pdf file name is the name of last printed pdf .

Rather then that why don't it automatically append the [saved filename].pdf formate. that will be a good option.So i thought of adding that feature but i was not able to compile the source in Ubuntu.

please add that feature.
Comment 1 Sébastien Wilmet 2013-11-01 20:52:21 UTC
I confirm, when printing to a file, the filename is often not what I want.
Comment 2 Sébastien Wilmet 2013-11-03 16:07:32 UTC
It's probably a regression, see

https://wiki.gnome.org/GnomeGoals/PrintToFile
bug #587053
Comment 3 Sébastien Wilmet 2013-11-03 19:33:16 UTC
Created attachment 258879 [details] [review]
Print to file: fix default output filename

In ~/.config/gedit/gedit-print-settings, the URI is saved and loaded the
next time. Since the URI has a higher priority than the BASENAME, the
basename was not taken into account.
Comment 4 Paolo Borelli 2013-11-04 07:40:39 UTC
Review of attachment 258879 [details] [review]:

Makes sense.


I guess it is worth backporting to 3.10 (and probably also others of your recent patches)
Comment 5 Sébastien Wilmet 2013-11-04 12:34:15 UTC
The commit is pushed to the master and gnome-3-10 branches.