Junction icon indicating copy to clipboard operation
Junction copied to clipboard

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

Open ocosta opened this issue 3 years ago • 14 comments

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.

ocosta avatar Dec 23 '21 12:12 ocosta

You mean in GNOME Settings -> Default applications ?

sonnyp avatar Dec 23 '21 13:12 sonnyp

You mean in GNOME Settings -> Default applications ?

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

ocosta avatar Dec 23 '21 13:12 ocosta

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.

sonnyp avatar Dec 23 '21 15:12 sonnyp

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!

ocosta avatar Dec 26 '21 15:12 ocosta

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 avatar Dec 26 '21 15:12 sonnyp

Did you get the chance to have a look?

sonnyp avatar Jan 10 '22 21:01 sonnyp

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:

ocosta avatar Jan 11 '22 23:01 ocosta

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

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

sonnyp avatar Jan 19 '22 21:01 sonnyp

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.

ocosta avatar Feb 01 '22 11:02 ocosta

Did you mess with Junction permissions?

Try Flatseal -> Junction -> Reset

https://github.com/tchx84/Flatseal

sonnyp avatar Feb 01 '22 11:02 sonnyp

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

ocosta avatar Feb 01 '22 11:02 ocosta

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 avatar Feb 01 '22 12:02 sonnyp

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

sonnyp avatar Feb 01 '22 12:02 sonnyp

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.

ocosta avatar Mar 14 '22 15:03 ocosta