Exit code of locations mount script is not respecting error

Bug #2038783 reported by Marco Trevisan (Treviño)
6
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>/locationsWorker.js handler file:///foo/bar/baz
  echo $?

An error should be shown and the return code should be 1

Doing instead

  gjs -m /<email address hidden>/locationsWorker.js handler file://$HOME
  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

Revision history for this message
Utkarsh Gupta (utkarsh) wrote :

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.

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

This bug is ready for verification. Due to the status mantic was in when the package was accepted, the tooling failed to add the template comment to this bug, and add the tags, and I did all of that manually now.

Changed in gnome-shell-extension-ubuntu-dock (Ubuntu Mantic):
status: In Progress → Fix Committed
tags: added: verification-needed verification-needed-mantic
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gnome-shell-extension-ubuntu-dock - 87ubuntu2

---------------
gnome-shell-extension-ubuntu-dock (87ubuntu2) mantic; urgency=medium

  [ Marco Trevisan (Treviño) ]
  * locationsWorker: Exit with the main script exit code (LP: #2038783)

  [ Stuart Hayhurst ]
  * appIcons: Use Mtk.Rectangle instead of Meta.Rectangle (LP: #2034664)

 -- Marco Trevisan (Treviño) <email address hidden> Mon, 09 Oct 2023 03:04:54 +0200

Changed in gnome-shell-extension-ubuntu-dock (Ubuntu):
status: Fix Committed → Fix Released
description: updated
description: updated
description: updated
Revision history for this message
Jeremy Bícha (jbicha) wrote :

I successfully completed the test case with gnome-shell-extension-ubuntu-dock 87ubuntu2 on Ubuntu 23.10.

tags: added: verification-done verification-done-mantic
removed: verification-needed verification-needed-mantic
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gnome-shell-extension-ubuntu-dock - 87ubuntu2

---------------
gnome-shell-extension-ubuntu-dock (87ubuntu2) mantic; urgency=medium

  [ Marco Trevisan (Treviño) ]
  * locationsWorker: Exit with the main script exit code (LP: #2038783)

  [ Stuart Hayhurst ]
  * appIcons: Use Mtk.Rectangle instead of Meta.Rectangle (LP: #2034664)

 -- Marco Trevisan (Treviño) <email address hidden> Mon, 09 Oct 2023 03:04:54 +0200

Changed in gnome-shell-extension-ubuntu-dock (Ubuntu Mantic):
status: Fix Committed → Fix Released
Revision history for this message
Andreas Hasenack (ahasenack) wrote : Update Released

The verification of the Stable Release Update for gnome-shell-extension-ubuntu-dock has completed successfully and the package is now being released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.