After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 703506 - RFE: add commandline parsing
RFE: add commandline parsing
Status: RESOLVED OBSOLETE
Product: gnome-documents
Classification: Core
Component: general
unspecified
Other All
: Normal enhancement
: ---
Assigned To: GNOME documents maintainer(s)
GNOME documents maintainer(s)
Depends on: 661610
Blocks:
 
 
Reported: 2013-07-03 07:01 UTC by Hans de Goede
Modified: 2021-07-05 11:31 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Hans de Goede 2013-07-03 07:01:18 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.
Comment 1 Debarshi Ray 2014-03-28 14:45:24 UTC
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/
Comment 2 Allan Day 2014-03-28 16:03:49 UTC
Passing a document to the app would be more like "import" rather than open, but that would require a design for import.
Comment 3 GNOME Infrastructure Team 2021-07-05 11:31:57 UTC
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.