sonnyp / Junction

Application/browser chooser
https://flathub.org/apps/re.sonny.Junction
GNU General Public License v3.0
457 stars 29 forks source link

Junction can't open its own website from the About dialog when running as a Flatpak #91

Closed lostfictions closed 1 year ago

lostfictions commented 1 year ago

Hi there, thanks for this application, it's extremely useful!

I've noticed a small issue: when running Junction as a Flatpak with it set as the default web browser, it's unable to open hyperlinks in its own About dialog. Running flatpak run re.sonny.Junction and then clicking on a link in the About dialog yields the following output:

sh: line 1: exec: flatpak: not found

(re.sonny.Junction:3): Gtk-WARNING **: <timestamp>: Couldn't unexport handle for GdkX11Toplevel surface, unsupported windowing system
sonnyp commented 1 year ago

Can you try with the beta ?

flatpak install --user https://dl.flathub.org/build-repo/114055/re.sonny.Junction.flatpakref
flatpak run re.sonny.Junction//test https://example.com
sonnyp commented 1 year ago

Never mind - it's not solved.

sonnyp commented 1 year ago

Actually, I can't reproduce with Junction 1.5.0 (available on Flathub) on Fedora 37.

flatpak run re.sonny.Junction//stable

Can you share more details about your env? In Junction about window there is a System section.

lostfictions commented 1 year ago

sure, here's the dump of that:

Junction:
version 1.5.0
programInvocationName /app/bin/re.sonny.Junction
argv 
cwd /home/<username>
datadir /app/share

Powered by:
GJS 1.70.2
libadwaita 1.0.0
GTK 4.4.2
GLib 2.70.5
flatpak 1.14.0

Environment:
OS Ubuntu 20.04.5 LTS (Focal Fossa)
$XDG_DATA_DIRS /app/share:/usr/share:/usr/share/runtime/share:/run/host/user-share:/run/host/share:/run/host/usr/share:/var/lib/snapd/desktop:/var/lib/flatpak/exports/share:/home/<username>/.local/share/flatpak/exports/share
$PATH /app/bin:/usr/bin
$FLATPAK_ID re.sonny.Junction
$XDG_CURRENT_DESKTOP ubuntu:GNOME
$XDG_SESSION_TYPE x11
GlitchSlayed commented 1 year ago

having the same exact issue and its been a pain in the ass, im on fedora 37

sonnyp commented 1 year ago

@GlitchSlayed

Why is it is a pain in the ass that you can't open a link from Junction about dialog?

GlitchSlayed commented 1 year ago

because it is the default prompt that comes up when i press a link, but choosing a browser doesn't open one, so i have to manually copy the link again, open a browser and then paste it

sonnyp commented 1 year ago

@GlitchSlayed that's a separate problem - please open a new issue with the details from About -> Troubleshooting