talk-desktop icon indicating copy to clipboard operation
talk-desktop copied to clipboard

Support GNOME 3.26+ with no system tray

Open ggzengel opened this issue 1 year ago • 14 comments

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

ggzengel avatar Dec 15 '24 05:12 ggzengel

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.

ggzengel avatar Dec 15 '24 05:12 ggzengel

What is @@u %U @@ about?

nickvergessen avatar Dec 15 '24 06:12 nickvergessen

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. 

ggzengel avatar Dec 15 '24 14:12 ggzengel

Something like this: https://github.com/flatpak/flatpak/issues/5427

ggzengel avatar Dec 15 '24 14:12 ggzengel

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 avatar Dec 15 '24 14:12 ggzengel

@ggzengel What version of xdg-desktop-portal are you using?

ShGKme avatar Feb 04 '25 08:02 ShGKme

@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

ShGKme avatar Feb 04 '25 08:02 ShGKme

ii xdg-desktop-portal 1.16.0-2 amd64 desktop integration portal for Flatpak and Snap

ggzengel avatar Feb 04 '25 13:02 ggzengel

@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.

ggzengel avatar Feb 04 '25 13:02 ggzengel

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

ShGKme avatar Feb 04 '25 20:02 ShGKme

The problem has been fixed in xdg-desktop-portal v1.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.

ggzengel avatar Feb 05 '25 13:02 ggzengel

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...

ShGKme avatar Feb 05 '25 16:02 ShGKme

I installed the flatpak 1.0.2 on an other PC.

Also on Debian Bookworm?

ShGKme avatar Feb 05 '25 16:02 ShGKme

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.

ggzengel avatar Feb 07 '25 10:02 ggzengel