--help command line option show wrong command name
Affected version
- Nightly flatpak: Yes
- 3.34 stable and probably earlier versions.
Steps to reproduce
For the stable version provided by the distribution:
- Open the Terminal application
- Run this command in the Terminal:
nautilus --help
For the development version:
- Build nautilus using GNOME Builder
- After it's built, in Builder, open a runtime terminal (shortcut CtrlAltT
- Run this command in the runtime terminal:
nautilus --help
Current behavior
Output for the stable version:
Usage:
org.gnome.Nautilus [OPTION…] [URI…]
...
For the development version:
Usage:
org.gnome.NautilusDevel [OPTION…] [URI…]
...
Expected behavior
Output for both versions:
Usage:
nautilus [OPTION…] [URI…]
...
Additional information
This bug was introduced by the change in a6b2599f
Same issue in gedit: gedit#192 (closed)
This might be a GLib bug, which assumes that g_get_prgname()
is the executable's name.