Bug 63330 - wish for better CLI integration: when launched from command-line, please default to the presentation's directory for file browsers
Summary: wish for better CLI integration: when launched from command-line, please defa...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
(earliest affected) release
Hardware: x86-64 (AMD64) Linux (All)
: medium enhancement
Assignee: Not Assigned
Depends on:
Blocks: Commandline
  Show dependency treegraph
Reported: 2013-04-09 17:26 UTC by Richard Neill
Modified: 2019-02-24 19:45 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:
Regression By:


Note You need to log in before you can comment on or make changes to this bug.
Description Richard Neill 2013-04-09 17:26:48 UTC
Summary: Please make use of the $PWD variable for file-picker defaults.

I tend to keep documents (especially presentations) well organised, in a deep directory structure, where each project is in its own directory, together the relevant files (pictures, videos, diagrams etc).

So my workflow goes as follows (names changed for privacy):

0. I'm already at the command line.

1. cd  Documents/consulting/projects/penguins/feeding/
    #I get here rapidly using tab-completion

2. libreoffice herring.odp

3. Now I start to work on the presentation. When I add files (insert pictures, or videos, or use file->open), Impress (or Writer) open the file picker in the *wrong* place; either in my home-directory, or the last place I was looking when I last used L.O. on a different project. Neither is helpful, and it's cognitively jarring to be put into the "wrong" context.

It would be really useful if the file-picker would default to the same path that my presentation is in, rather than elsewhere. 

Might I suggest a heuristic:

1. The current behaviour is fine on Windows, (and maybe even on Linux when the program is launched from the graphical menu.)

2. When starting from the command-line [and especially when the user has changed directory to somewhere different, i.e. where   $PWD != $HOME   ]
then the file-open and insert-file dialogs should default to 
  $(dirname herring.odp)         #or possibly $PWD.

This would be a huge timesaver for programmers, and make LO work similarly to the way that other editors operate.

Thanks for your time.
Comment 1 Robinson Tryon (qubit) 2014-02-04 12:49:41 UTC
Sounds like a reasonable enhancement request.

Status -> NEW
Comment 2 Robinson Tryon (qubit) 2014-02-04 13:14:13 UTC
Whiteboard: (remove NeedAdvice)