Support GNOME 3.26+ with no system tray
If I start Talk from Launcher it will close after a few seconds.
After removing @@u %U @@ Talk runs normally:
# cat /var/lib/flatpak/exports/share/applications/com.nextcloud.talk.desktop
[Desktop Entry]
Name=Nextcloud Talk
Comment=Official Desktop client for Nextcloud Talk
GenericName=Video and Chat Communication
#Exec=/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=electron-wrapper --file-forwarding com.nextcloud.talk @@u %U @@
Exec=/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=electron-wrapper --file-forwarding com.nextcloud.talk
Icon=com.nextcloud.talk
Type=Application
StartupNotify=true
Categories=Network;InstantMessaging;Chat;VideoConference;
X-Flatpak=com.nextcloud.talk
I use Gnome3 on Debian Bookworm Back Ports.
# cat /etc/apt/preferences.d/99-backports
Package: *
Pin: release n=bookworm-backports
Pin-Priority: 500
ii gnome 1:43+1 amd64 Full GNOME Desktop Environment, with extra components
ii xserver-xorg 1:7.7+23 amd64 X.Org X server
ii xwayland 2:22.1.9-1 amd64 X server for running X clients under Wayland
After a few test Talk closes again after a few seconds.
If I run it with /usr/bin/flatpak run --branch=stable --arch=x86_64 --command=electron-wrapper --file-forwarding com.nextcloud.talk it stays open.
Does the Gnome Launcher close Talk?
Edit: I mean running it in a console.
What is @@u %U @@ about?
I think it's Gnome3 Launcher. But I can't find a logfile with more info.
I found this:
https://docs.flatpak.org/en/latest/flatpak-command-reference.html#flatpak-run
--file-forwarding
If this option is specified, the remaining arguments are scanned, and all arguments that are enclosed between a pair of '@@' arguments are interpreted as file paths, exported in the document store, and passed to the command in the form of the resulting document path. Arguments between "@@u" and "@@" are considered URIs, and any "file:" URIs are exported. The exports are non-persistent and with read and write permissions for the application.
and this:
https://specifications.freedesktop.org/desktop-entry-spec/latest/exec-variables.html
%U A list of URLs. Each URL is passed as a separate argument to the executable program. Local files may either be passed as file: URLs or as file path.
Something like this: https://github.com/flatpak/flatpak/issues/5427
https://github.com/flathub/rs.ruffle.Ruffle/issues/1#issuecomment-2283803686 Sounds like the app might be missing the appropriate background permissions in its manifest?
@ggzengel What version of xdg-desktop-portal are you using?
@ggzengel Could you, please, run the following and try again?
flatpak override --talk-name=org.kde.StatusNotifierItem com.nextcloud.talk
flatpak override --talk-name=org.freedesktop.StatusNotifier.Watcher com.nextcloud.talk
ii xdg-desktop-portal 1.16.0-2 amd64 desktop integration portal for Flatpak and Snap
@ggzengel Could you, please, run the following and try again?
flatpak override --talk-name=org.kde.StatusNotifierItem com.nextcloud.talk flatpak override --talk-name=org.freedesktop.StatusNotifier.Watcher com.nextcloud.talk
It still closes after 3 seconds.
ii xdg-desktop-portal 1.16.0-2 amd64 desktop integration portal for Flatpak and Snap
The problem has been fixed in xdg-desktop-portal v1.17. You can try to update.
A workaround, if you don't want to update, is:
flatpak permission-set background background com.nextcloud.talk yes
The problem has been fixed in
xdg-desktop-portalv1.17. You can try to update.
Debian does not ship V1.17.
I installed the flatpak 1.0.2 on an other PC. Talk did not close after a few seconds, but if I close it, it's still running in the background and I can't find it to bring it to the foreground.
Talk did not close after a few seconds, but if I close it, it's still running in the background and I can't find it to bring it to the foreground.
When you are logged into your account or not?
If you are, there must be a tray icon. Otherwise, it mustn't be in the background...
I installed the flatpak 1.0.2 on an other PC.
Also on Debian Bookworm?
Talk did not close after a few seconds, but if I close it, it's still running in the background and I can't find it to bring it to the foreground.
When you are logged into your account or not?
If you are, there must be a tray icon. Otherwise, it mustn't be in the background...
Gnome3 don't have a really systray.
There is no icon. I can see the process still running. If I start Talk again I can see a few new processes for a few seconds. Talk did not come to front until I stop the running processes.
Yes it's bookworm with backports enabled, too.