Closed ThanosApostolou closed 4 years ago
Opening through the file->open? or somehow else?
Opening through file-> open works as expected. Problem exists when opening through my file manager or with command line (flatpak run org.kde.kate /path/to/file
)
I think that's by flatpak design and can't be fixed.
Paging people that know more than me @aleixpol @grulja
When doing "flatpak run bla" is there any change of reusing a given bla and not starting a new one?
Single instance mode is ideally implemented using DBus, this just works provided correct naming.
Sometimes applications make lockfiles though which need to be in a place both applications can see (not /tmp
in flatpak) and that can usually be solved doing something like --env=TMPDIR=/var/tmp
as a workaround.
this just works provided correct naming.
Don't call it correct, because it obviously doesn't work. I would call it "whatever flatpak developers implemented without consulting everyone else that did have this feature already"
Correct naming as-in their DBus name matches their app-id. If it doesn't I'd still call it not ideal but you can always add --own-name=org.gnome.kate
or whatever they used :P.
You can track denied dbus permissions with flatpak run --log-session-bus org.kde.kate
.
I am going to give you a free advice, don't use sarcasm and :P on the internet with people you have not met in real life, doesn't translate well.
I think that's by flatpak design and can't be fixed.
Paging people that know more than me @aleixpol @grulja
When doing "flatpak run bla" is there any change of reusing a given bla and not starting a new one?
It definitely should work, I though I'd fixed it in KDBusAddons, maybe not. But in general, it's a matter to be able to reach the right dbus signals. I'll look into it eventually.
Running non-flatpaked Kate I see org.kde.kate-xxxx on the session bus, while running flatpaked Kate I see org.kde.kate.kdbus-_y_xxxx. I tried running it even with --socket=session-bus, but that didn't help either. Maybe KDBusAddons are looking for a wrong dbus name? I don't really know how KUniqueApplication (or what we use) is supposed to work.
https://phabricator.kde.org/D27208
Kate was not aware of how KDBusService works for flatpak.
https://invent.kde.org/kde/kate/commit/5b5c32aa35ea16653421eb637eb407686696d2fd patch landed, should be solved in the next release.
Not really next (19.12.3) but next-next 20.04.0
I'm going to close this anyway since it is as fixed as it can be.
Just installed the latest beta (Kate 23.08.3) from Flathub-beta and files opened with my file manager always open in new Kate windows even though the open each document in its own window
setting is disabled.
Each file that I open creates a new window instead of the usual behavior which is to create a new tab. Also, if I open the same file multiple times it opens multiple windows instead of the default behavior which is to bring the opened window to the foreground. The only messages I see are those:
Maybe the "Not connected to D-Bus server" is relevant.