GNOME Bugzilla – Bug 775938
Lack of --help option in new gvfs-* wrapper breaks xdg-utils
Last modified: 2016-12-12 13:46:53 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.
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.
Attachment 341815 [details] pushed as aa61b05 - programs: Handle --help by gvfs tools wrapper