-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
apport-bug: Add /snap/bin to PATH for Firefox snap #2
Conversation
|
Codewise, LGTM. However, I just tried the following: So I'm spinning up a fresh 22.04 VM to see how things are in a pristine env. |
Codecov Report
@@ Coverage Diff @@
## main #2 +/- ##
=======================================
Coverage 79.29% 79.29%
=======================================
Files 77 77
Lines 17222 17222
=======================================
+ Hits 13656 13657 +1
+ Misses 3566 3565 -1
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
|
Given that the firefox snap is seeded in multiple flavors it is curious to me that this works in an Ubuntu desktop environment but not for Lubuntu. |
b307aca
to
b9fe4a4
Compare
|
|
On LXQt `apport-bug` is unable to open the Firefox snap at the very end of the process: ``` $ env -i apport-bug apport [...] Choices: 1: Launch a browser now C: Cancel Please choose (1/C): 1 /usr/bin/xdg-open: 882: firefox: not found /usr/bin/xdg-open: 882: firefox: not found xdg-open: no method available for opening 'https://bugs.launchpad.net/ubuntu/+source/apport/+filebug/d7ffa3e0-d46d-11ec-a167-40a8f03099c8?' ``` The Firefox snap provides `/snap/bin/firefox`. `apport-bug` sets the environment variable `PATH`, but does not include `/snap/bin`: ``` $ PATH=/usr/sbin:/usr/bin:/sbin:/bin xdg-open https://ubuntu.com /usr/bin/xdg-open: 882: firefox: not found /usr/bin/xdg-open: 882: firefox: not found xdg-open: no method available for opening 'https://ubuntu.com' ``` `xdg-open` behaves differently depending on the desktop environment. On GMOME `xdg-open` calls `gio open` and successfully opens Firefox regardless of `PATH`, but on LXQt it tries to call `firefox` directly. Bug: https://launchpad.net/bugs/1973470 Signed-off-by: Benjamin Drung <benjamin.drung@canonical.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
On LXQt
apport-bugis unable to open the Firefox snap at the very end of the process:The Firefox snap provides
/snap/bin/firefox.apport-bugsets the environment variablePATH, but does not include/snap/bin:xdg-openbehaves differently depending on the desktop environment. On GMOMExdg-opencallsgio openand successfully opens Firefox regardless ofPATH, but on LXQt it tries to callfirefoxdirectly.Bug: https://launchpad.net/bugs/1973470