I've debugged the issue and here is what is going on
* the report is a system one so ubuntu-bug is using sudo
* the environment is filtered which includes XDG_DATA_DIRS
* when XDG_DATA_DIRS is missing glib fallbacks to the standard path,
/usr/share/applications
* there is no browser installed in this directory since we install firefox as a
snap and the desktop is in /var/lib/snapd/desktop/applications
* gio fallbacks for some reason to use a text editor but could as well error out
The attached patch should fix the issue, I didn't confirm yet though
** Changed in: apport (Ubuntu)
Status: New => Confirmed
** Changed in: apport (Ubuntu)
Importance: Undecided => High
** Tags added: rls-jj-incoming
** Patch added: "tentative patch to fix the issue"
https://bugs.launchpad.net/ubuntu/+source/apport/+bug/1951214/+attachment/5543297/+files/apport.patch
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1951214
Title:
ubuntu-bug isn't opening firefox (snap) on jammy, instead gedit gets
data
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apport/+bug/1951214/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs