mvo5 / synaptic

The synaptic package manager
GNU General Public License v2.0
161 stars 55 forks source link

hyperlinks cause problems with Firefox #112

Open timrichardson opened 1 year ago

timrichardson commented 1 year ago

I have mozilla packaged Firefox running in wayland. Synaptic packages pages usually have a a link to the package 'homepage'. This are URLs but they are broken with Firefox, in that if Firefox is already running

The error is a dialog: Firefox is already running, but is not responding. To use Firefox, you must first close the existing Firefox process, restart your device, or use a different profile.

If firefox is not running, it works.

I am reporting it here because I don't have this problem with other apps. Even in a terminal with firefox running, this will open a new tab

firefox google.com

I conclude there is something about the way Synaptic is launching firefox which is not working. I am using Ubuntu 22.10 and the wayland gnome session.

Synaptic: 0.91.2

askubuntu question: https://askubuntu.com/questions/1458880/firefox-mozilla-binary-wayland-can-not-open-system-links-firefox-is-already-ru

mimagind commented 1 year ago

I suspect the problem is caused by trying to open the link as sudo user. In rgpkgdetails.cc both cbOpenLink and cbOpenHomepage call RunAsSudoUserCommand to open the link. That seems like the wrong thing to do, the link should be opened normally as the current user.

domr2695 commented 12 months ago

I support the opinion of mimagind and there is a post https://bugzilla.sudo.ws/show_bug.cgi?id=1059 from 2023-10-09 12:17 MDT to the developer sudo Todd C. Miller.

kimariterikishi commented 11 months ago

I support the opinion of mimagind and there is a post https://bugzilla.sudo.ws/show_bug.cgi?id=1059 from 2023-10-09 12:17 MDT to the developer sudo Todd C. Miller.

If so, could it be improved? https://github.com/mvo5/synaptic/blob/master/gtk/rgpkgdetails.cc When is it expected to be fixed? :-)