Open mokurin000 opened 6 months ago
I have problems with flatpak too and probably related to this.
I don't have any problem when I add "--socket=session-bus"
to finish-args. But flathub doesn't like "I can talk anything" permission.
When I removed "--socket=session-bus" and only "--talk-name=org.kde.StatusNotifierWatcher"
left, I got D-Bus error: org.freedesktop.DBus.Error.ServiceUnknown (org.freedesktop.DBus.Error.ServiceUnknown)
I have problems with flatpak too and probably related to this.
I don't have any problem when I add
"--socket=session-bus"
to finish-args. But flathub doesn't like "I can talk anything" permission.When I removed "--socket=session-bus" and only
"--talk-name=org.kde.StatusNotifierWatcher"
left, I gotD-Bus error: org.freedesktop.DBus.Error.ServiceUnknown (org.freedesktop.DBus.Error.ServiceUnknown)
did you try https://github.com/waylyrics/ksni/tree/feat-custom-dbus-name
0.2.2 update and run_without_dbus_name() solved my problem.
This is for flatpak packaging. If we own
org.kde.StatusNotifierItem-2-1
, it will be tricky: it's not guaranteed that my app will have PID 2. As workarounds from chromium, instead we register a existing dbus name we are using, and everything works fine.