Bug 166282 - Allow Save-and-Closing of open files from the command-line
Summary: Allow Save-and-Closing of open files from the command-line
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
25.8.0.0 alpha0+
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: needsDevEval
Depends on:
Blocks: Commandline
  Show dependency treegraph
 
Reported: 2025-04-21 15:31 UTC by Eyal Rozenberg
Modified: 2025-04-22 08:13 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eyal Rozenberg 2025-04-21 15:31:32 UTC
Sometimes, you leave your desktop or laptop with a document open in LibreOffice. Then, accessing the system remotely, you want to do something with the file; it could be moving it, or even editing it both not in your running LibreOffice.

At the moment, there is little you can do. I would say nothing, but there actually are ways to simulate keystrokes from the command-line. Still, that an unreliable hack.

I would like for LibreOffice' command-line to let me Save-and-close one of the files that are open with LO (or with the saving being optional).
Comment 1 Eyal Rozenberg 2025-04-21 17:49:31 UTC
A Python script which achieves something similar:

https://github.com/thomasa88/lo-remote-close
Comment 2 Heiko Tietze 2025-04-22 08:13:03 UTC
More generalized you expect UNO interaction via command line... I don't see this flying. At least there is no unique process ID for documents or even modules. => needsDevEval