Skip to content

Accept new file name from the command line

Summary:

(this is an enhancement request for command-line users)

New file names should be accepted from the command line. For example, I can do "vim new_file.txt" even when "new_file.txt" does not exist yet, but not "inkscape new_file.svg". This can be especially useful when starting inkscape from some deep subdirectory, or when I know the file name beforehand.

Steps to reproduce:

run "inkscape new_file.svg" from the shell command line.

What happened?

inkscape complains that "new_file.svg" does not exist:

ink_file_open: '/home/kas/new_file.svg' cannot be opened!
InkscapeApplication::document_open: Failed to open: /home/kas/new_file.svg
ConcreteInkscapeApplication::on_open: failed to create document!

What should have happened?

inkscape should start with new document and preselected file name (and of course, the directory).

Debug info


Inkscape 1.1 (c68e22c387, 2021-05-23)

    GLib version:     2.68.2
    GTK version:      3.24.29
    glibmm version:   2.66.1
    gtkmm version:    3.24.5
    libxml2 version:  2.9.12
    libxslt version:  1.1.34
    Cairo version:    1.17.4
    Pango version:    1.48.5
    HarfBuzz version: 2.7.4
    Poppler version:  21.01.0

    OS version:       Fedora 34 (Thirty Four)

Thanks in advance for considering this request.

Edited by Jan "Yenya" Kasprzak
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information