starting inkscape with the name of a nonexistent file should create a new default document

Bug #1265555 reported by Bob Forsman
48
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Inkscape
Triaged
Wishlist
Unassigned

Bug Description

Right now when you start inkscape and pass it a command-line argument naming a file that does not exist it gives an error:

"Failed to load the requested file whatever.svg"

Instead, it should create a blank document as if it had been invoked with no command line arguments. However, when the user tries to save the file, it should default to the location specified on the command line.

The existing workflow is suboptimal:

inkscape
draw a bunch of stuff
click save
navigate from whatever random directory the file chooser starts in to the directory you really want to save in (often ., and why isn't that the starting directory for the file chooser?)

It would be better if you could

inkscape diagram.svg
draw a bunch of stuff
click save

and be done. This workflow is so common in other tools that inkscape's deviation from the cliche is REALLY jarring.

For bonus points: if there is no parent directory for the path of the not-yet-existing file, pop up a warning dialog,

Tags: cli
jazzynico (jazzynico)
tags: added: cli
removed: rfe
Changed in inkscape:
importance: Undecided → Wishlist
Revision history for this message
jazzynico (jazzynico) wrote :
Changed in inkscape:
status: New → Triaged
summary: - starting inkscape with the name of a nonexistent file should not error
+ starting inkscape with the name of a nonexistent file should create a
+ new default document
Revision history for this message
Thangalin (thangalin-deactivatedaccount) wrote :

> For bonus points: if there is no parent directory for the path of the not-yet-existing file, pop up a warning dialog,

Should prompt to create the directory. There are two scenarios:

a) The user deliberately specified a path to a non-existent directory.
b) The user made a typo on the directory path.

In the first case, the path should be created.

In the second case, the user should be given a chance to correct the directory path.

In both cases, a dialog with a Create/Cancel/Edit Directory Path would be preferred.

Additionally, there should be a command-line option to indicate that any missing directories must be created automatically (this would simplify batch scripts and allow users to create their own aliases so that "inkscape" becomes "inkscape --no-prompt", or whatever the switch is named).

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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