Exit code of locations mount script is not respecting error
Bug #2038783 reported by
Marco Trevisan (Treviño)
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gnome-shell-extension-ubuntu-dock (Ubuntu) |
Fix Released
|
Medium
|
Marco Trevisan (Treviño) | ||
Mantic |
Fix Released
|
Medium
|
Marco Trevisan (Treviño) |
Bug Description
[ Impact ]
When mounting an external location a script is used to get the current default app for a type, its return error is parsed by the dock to provide users a feedback, but the returned code is not valid in case of error.
[ Test case ]
Run:
gjs -m /<email address hidden>
echo $?
An error should be shown and the return code should be 1
Doing instead
gjs -m /<email address hidden>
echo $?
The file manager desktop-id should be printed and the script should return 0.
[ Regression Potential ]
Some locations may not have a default handler and so not being launched
Hey, gnome-shell- extension- ubuntu- dock is not something that we (release team) are planning to accept ahead of Mantic release, so we're going to let it be in the unapproved queue and consider this for a 0-day SRU.