Open and Save dialog boxes ignore current working directory

Bug #818351 reported by Jim Pivarski
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Inkscape
New
Wishlist
Unassigned

Bug Description

When invoked from a command prompt, Inkscape's Open and Save dialog boxes start in the directory that was last used by Inkscape, not the working directory of the command prompt. This behavior is unlike most other Linux/UNIX applications (for example, Gimp) and leads to many lost files and frustration.

If some users want the current behavior, at least the start-from-current-working-directory behavior should be an option (feature request).

Tested on Ubuntu Linux 6.06, 8.04, 10.04, 10.10, 11.04 packaged versions. (I've been waiting for someone else to complain. :)

Thanks,
-- Jim

Tags: cli
su_v (suv-lp)
Changed in inkscape:
importance: Undecided → Wishlist
tags: added: cli
Revision history for this message
Melodie (mgreissel) wrote :

I have a class with 22 XP computers. Often students try to "Save As" or "Save a copy" and the dialog box will not open. If they did save successfully, when they go to start a new document... the Save As and Save a Copy will not open. This does not happen to all students or all computers... one class the XP is working fine, then the next it is not... it seems random. This is causing a great amount of frustration. The students love using Inkscape, so we would like to have this problem fixed. My Windows 7 Laptop does not have this problem. Melodie

Revision history for this message
su_v (suv-lp) wrote :

@Melodie - you describe a known regression with the Windows port of Inkscape 0.48.2:
Bug #805095 “no File->Save As... dialog box if previously opened a file from root directory of a drive ”
<https://bugs.launchpad.net/inkscape/+bug/805095>

Please consider installing the more recent version Inkscape 0.48.3.1 which no longer is affected by this regression:
<http://sourceforge.net/projects/inkscape/files/inkscape/0.48.3.1/>

Revision history for this message
su_v (suv-lp) wrote :

> When invoked from a command prompt, Inkscape's Open and Save dialog
> boxes start in the directory that was last used by Inkscape, not the
> working directory of the command prompt.

With recent versions of GTK+ (2.24.16 and later), the current working directory is easily reachable within the Gtk file dialogs (Save, as well as Open and Import), since it is now listed at the top of the predefined bookmarks on the left side ('Places').

For 'Save as' (and 'Save a copy') dialogs, Inkscape 0.48 (and current trunk) already default to the directory of the currently open file (optionally, can be changed in the preferences to the last used one), for new files it varies depending on upstream GTK+ version.

Revision history for this message
su_v (suv-lp) wrote :

Proposal from new duplicate (bug #1155070):

> I would like to have a general preference "Use current directory" which
> means
>
> * open file looks in current directory
> * save, save as, save bitmat... save by default in current directory
> * import imports from current directory
>
> all I/O relate to current directory. (…)

> This behavior is useful when starting inkscape from a term with the
> command line. Therefore we can imagine an argument "-c" or "--
> current_directory".

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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