Skip to content
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

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

Closed
ocosta opened this issue Dec 23, 2021 · 14 comments
Closed

Comments

@ocosta
Copy link

ocosta commented Dec 23, 2021

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
Copy link
Owner

sonnyp commented Dec 23, 2021

You mean in GNOME Settings -> Default applications ?

@ocosta
Copy link
Author

ocosta commented Dec 23, 2021

You mean in GNOME Settings -> Default applications ?

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

@sonnyp
Copy link
Owner

sonnyp commented Dec 23, 2021

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
Copy link
Author

ocosta commented Dec 26, 2021

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
Copy link
Owner

sonnyp commented Dec 26, 2021

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
Copy link
Owner

sonnyp commented Jan 10, 2022

Did you get the chance to have a look?

@ocosta
Copy link
Author

ocosta commented Jan 11, 2022

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 🤔

@sonnyp
Copy link
Owner

sonnyp commented Jan 19, 2022

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

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

@ocosta
Copy link
Author

ocosta commented Feb 1, 2022

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
Copy link
Owner

sonnyp commented Feb 1, 2022

Did you mess with Junction permissions?

Try Flatseal -> Junction -> Reset

https://github.com/tchx84/Flatseal

@ocosta
Copy link
Author

ocosta commented Feb 1, 2022

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
Copy link
Owner

sonnyp commented Feb 1, 2022

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
Copy link
Owner

sonnyp commented Feb 1, 2022

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

@ocosta
Copy link
Author

ocosta commented Mar 14, 2022

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.

@sonnyp sonnyp closed this as not planned Won't fix, can't repro, duplicate, stale May 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants