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 775938 - Lack of --help option in new gvfs-* wrapper breaks xdg-utils
Lack of --help option in new gvfs-* wrapper breaks xdg-utils
Status: RESOLVED FIXED
Product: gvfs
Classification: Core
Component: general
1.31.x
Other Linux
: Normal normal
: ---
Assigned To: gvfs-maint
gvfs-maint
Depends on:
Blocks:
 
 
Reported: 2016-12-10 23:15 UTC by Sebastian Keller
Modified: 2016-12-12 13:46 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
programs: Handle --help by gvfs tools wrapper (4.00 KB, patch)
2016-12-12 12:53 UTC, Ondrej Holy
committed Details | Review

Description Sebastian Keller 2016-12-10 23:15:41 UTC
The new wrapper that replaced the 'gvfs-*' commands does not support the '--help' option which is used by some of the 'xdg-utils' programs to test for their presence. One example of how this is being used in 'xdg-utils' is this:

https://cgit.freedesktop.org/xdg/xdg-utils/tree/scripts/xdg-mime.in#n78

There are many more of these spread across the different 'xdg-utils' scripts.

This currently breaks opening downloaded files in Chrome and causes them to be opened with Firefox instead of the associated applications.
Comment 1 Ondrej Holy 2016-12-12 12:53:51 UTC
Created attachment 341815 [details] [review]
programs: Handle --help by gvfs tools wrapper

The gio cmd tool doesn't handle --help/-h for each command.
The expected commandline is the following: "gio help [command]".
Detect this case and call the help properly from wrapper.

This also fixes various xdg-utils scripts.
Comment 2 Ondrej Holy 2016-12-12 13:46:49 UTC
Attachment 341815 [details] pushed as aa61b05 - programs: Handle --help by gvfs tools wrapper