GNOME Bugzilla – Bug 703506
RFE: add commandline parsing
Last modified: 2021-07-05 11:31:57 UTC
Hi. I noticed that gnome-documents --help is "weird": [hans@shalem cheese]$ gnome-documents --help Usage: gjs-console [OPTION...] Help Options: -h, --help Show help options Application Options: -c, --command=COMMAND Program passed in as a string -I, --include-path=DIR Add the directory DIR to the list of directories to search for js files. --js-version=JSVERSION JavaScript version (e.g. "default", "1.8" And I've also noticed that doing ie: gnome-documents example.pdf Does not result in what one would expect, so it seems that gnome-documents does not have any cmdline parsing at all. It would be nice to get some cmdline support, so that ie gnome-documents can be used as a handler for certain mimi-types.
Hans, I don't think is necessarily a bug. The idea is that gnome-documents is an alternative UI for viewing your documents as opposed to a file manager like nautilus. In that sense it is not necessarily a preview tool like eog or evince. You can look at some of the nautilus-next designs [1] that touch upon previewing content. That said, we already have code to open a search result selected from the gnome-shell overview. Maybe we can just add the ability to open something from the command line too. Or maybe not. I don't know. [1] http://afaikblog.wordpress.com/2013/12/11/nautilus-next/
Passing a document to the app would be more like "import" rather than open, but that would require a design for import.
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org. As part of that, we are mass-closing older open tickets in bugzilla.gnome.org which have not seen updates for a longer time (resources are unfortunately quite limited so not every ticket can get handled). If you can still reproduce the situation described in this ticket in a recent and supported software version, then please follow https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines and create a new ticket at https://gitlab.gnome.org/GNOME/gnome-documents/-/issues/ Thank you for your understanding and your help.