#[SOLVED] Issues getting Syncthingtray to open Trivalent from tray-menu
1 messages · Page 1 of 1 (latest)
i'll try and look at this later
fwiw it shouldn't need system bus at all
and you can make the user perms more fine-grained
you can even disable session bus, if you add Session Bus Talks:
- org.kde.StatusNotifierWatcher
- org.freedesktop.Notifications
- org.freedesktop.systemd1
(you can see the original permissions here: https://github.com/flathub/io.github.martchus.syncthingtray/blob/master/io.github.martchus.syncthingtray.yml) :)
it's not really an issue
so the only problem is that it can't launch trivalent?
i'm just guessing (haven't set it up yet), but have you tried changing the path to /run/host/usr/bin/trivalent %SYNCTHING_URL%? @stiff bison
could you try running flatpak run --command=sh io.github.martchus.syncthingtray in a regular terminal, then trying to open trivalent from there?
you'll be able to see the system from the flatpak's perspective
@stiff bison please can you replace the custom command with xdg-open %SYNCTHING_URL%?
that seems to work on my test :)
press Apply in the bottom-right first ofc
i'm surprised it doesn't work with "Tab in the default web browser"
it just can't launch a sandboxed trivalent by itself, and for good reason
you'd need to give it flatpak-spawn --host to get what you want, which would require a sandbox escape
best to just use xdg
if you replace xdg-open %SYNCTHING_URL% (broken for you) with xdg-open https://google.com, does that work?
because if that works, it suggests %SYNCTHING_URL% is malformed
and that's a different issue to just the web browser not working
wait, just hard-substitute it e.g. xdg-open http://127.0.0.1:8384, or set the syncthing url here:
ok, so just change it to xdg-open http://127.0.0.1:8384, or whatever you enter into your browser usually
did you set 'Syncthing URL' in this config menu?
cool, so everything's working?
you have it set to 'Chromium-based browser in "app mode"' > xdg-open %SYNCTHING_URL%?
no not at all, ideally the developer would be using xdg-open already, it may still be worth opening an issue
i'm glad you got it working
i'm not sure there is such a thing tbh 😅 some people put [solved] in the title