sonnyp / Junction

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

Installed via flatpak on Fedora 35, Junction doesn't show up as an option #51

Closed ocosta closed 1 year ago

ocosta commented 2 years ago

Installed Junction via Flatpak on Fedora 35, but can't see it as an option for anything on settings (web, files etc.). I tried checking permissions via Flatseal to see it there was anything obvious I could change, but didn't find any.

Let me know if I can provide any additional info.

sonnyp commented 2 years ago

You mean in GNOME Settings -> Default applications ?

ocosta commented 2 years ago

You mean in GNOME Settings -> Default applications ?

Yes, exactly. BTW restarting my GNOME session (log out) didn't help.

sonnyp commented 2 years ago

This is somewhat by design.

Junction doesn't advertise itself as supporting anything in particular.

For the time being launch Junction to set it as default browser or see https://github.com/sonnyp/Junction#usage

In the future, launching Junction will present with a UI to allow the user to set it as default for specific resources.

ocosta commented 2 years ago

Thanks for clarifying that. I will be away from my Fedora box for a while, but if I recall correctly, launching Junction did present a UI to set it as the default for web browsing; however, clicking the button didn't do anything (actually, it does try to do something as the cursor turns to the spinner for a while, but nothing happens). Once I come back from vacation we can debug it more precisely. Have nice Holidays!

sonnyp commented 2 years ago

Please open Junction via the terminal

flatpak run re.sonny.Junction

reproduce the problem and share the logs.

Also paste the content of Junction -> About -> System

Enjoy holidays

sonnyp commented 2 years ago

Did you get the chance to have a look?

ocosta commented 2 years ago

Sorry, I was on vacation. Here's what I get when I run on the command line, and click on the "Set Junction as default for Web" button:

flatpak run re.sonny.Junction

(re.sonny.Junction:3): Gtk-WARNING **: 20:46:39.763: Couldn't unexport handle for GdkX11Toplevel surface, unsupported windowing system
sh: line 1: exec: firefox: not found

FWIW Firefox is installed:

type firefox
firefox is /usr/bin/firefox

But, to my surprise, now Junction appears as an option for web on GNOME Control Center :thinking:

sonnyp commented 2 years ago

Please share the content of Junction -> About -> System

When does sh: line 1: exec: firefox: not found appear in the terminal ?

ocosta commented 2 years ago

Here it goes:

Junction:
version 1.5.0
programInvocationName /app/bin/re.sonny.Junction
argv --gapplication-service
cwd /home/costa
datadir /app/share

Powered by:
GJS 1.70.0
libadwaita 1.0.0
GTK 4.4.1
GLib 2.70.2
flatpak 1.12.4

Environment:
OS Fedora Linux 35 (Thirty Five)
$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/costa/.local/share/flatpak/exports/share
$PATH /app/bin:/usr/bin
$FLATPAK_ID re.sonny.Junction
$XDG_CURRENT_DESKTOP GNOME
$XDG_SESSION_TYPE x11

The firefox: not found error appears when I click on "Set Junction as the default for Web" button. I just checked again, it still happens.

sonnyp commented 2 years ago

Did you mess with Junction permissions?

Try Flatseal -> Junction -> Reset

https://github.com/tchx84/Flatseal

ocosta commented 2 years ago

Good call, but no, the reset button isn't even enabled for Junction. Any other possible cause you can think of? It seems to be a path-related issue, since firefox is installed at /usr/bin

sonnyp commented 2 years ago

I can't really explain, I'm also running Fedora 35 (wayland) and it works fine for me.

Junction:
version 1.5.0
programInvocationName /app/bin/re.sonny.Junction
argv --gapplication-service
cwd /home/sonny
datadir /app/share

Powered by:
GJS 1.70.0
libadwaita 1.0.0
GTK 4.4.1
GLib 2.70.2
flatpak 1.12.4

Environment:
OS Fedora Linux 35 (Workstation Edition)
$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/sonny/.local/share/flatpak/exports/share
$PATH /app/bin:/usr/bin
$FLATPAK_ID re.sonny.Junction
$XDG_CURRENT_DESKTOP GNOME
$XDG_SESSION_TYPE wayland
sonnyp commented 2 years ago

I wonder why our OS differs - are you using Silverblue or a special flavor of Fedora?

ocosta commented 2 years ago

Hi @sonnyp , sorry for being MIA for so long. Anyway, I was using a custom Fedora Server installation on my old desktop computer (which stopped working). I am now using a Fedora Workstation (X11, because I can't use Wayland with an external display on a new notebook), and the situation is pretty much the same:

flatpak run re.sonny.Junction 

(re.sonny.Junction:3): Gtk-WARNING **: 12:32:52.225: Locale not supported by C library.
    Using the fallback 'C' locale.

(re.sonny.Junction:3): Gtk-WARNING **: 12:32:58.699: Couldn't unexport handle for GdkX11Toplevel surface, unsupported windowing system
sh: line 1: exec: firefox: not found

Anyway, aside from not finding Firefox, Junction is working as expected, and is a very helpful tool, thanks a lot! If you would like to keeping debugging it, just let me know.