Print to file default file name should be folder/name of the file
Summary:
"print to file" is a very useful tool.
setting the path of the output file is very cumbersome, can be very time consuming and error-prone.
Steps to reproduce:
- open a terminal emulator
- $ mkdir test && cd test
- $ inkscape /some/existing/supported_file/in/any_other/location.svg
- Print -> Print to file
- select PDF file (doesn't really matter which, just for the example)
What happened?
default filename for the exported file is ~/test/output.pdf
What should have happened?
default filename for the exported file is /some/existing/supported_file/in/any_other/location.pdf
appreciated would be a button that does "set the filename of the exported file to the same filename as the original file but change the extension to whatever it's supposed to be (pdf in the current example) and save the file and possibly close the "print" dialog so I can get on with my work instead of having to open the browse dialog, navigate to the right directory with a clumsy mouse, type the correct filename while possibly making typos, close the browse dialog, then finally close the "print" dialog.
another possible option (both can be combined) is a button that sets the output filename to "PWD/output.pdf" or - why not? - something like "
PWD/outputNNNN.pdf" (where NNNN is auto-incremented) and where $PWD is possibly not that window's working directory but a configuration-specified value of a spooler dir (typically, my printer is not connected to my machine ; instead I save my files into a directory whose content gets printed periodically)
this relates to inbox#7235 ; when a large number of possibly unrelated files living in different parts of the filesystem are being worked on at the same time, this can be very time consuming and very frustrating.
Version info
Inkscape 1.2 (dc2aedaf03, 2022-05-15)
GLib version: 2.72.1
GTK version: 3.24.34
glibmm version: 2.66.4
gtkmm version: 3.24.6
libxml2 version: 2.9.14
libxslt version: 1.1.35
Cairo version: 1.16.0
Pango version: 1.50.7
HarfBuzz version: 2.9.1
OS version: Gentoo Linux
but totally not specific to this version, this behaviour has been around basically for ever.