Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Talk closes after few seconds #983

Open
ggzengel opened this issue Dec 15, 2024 · 5 comments
Open

Talk closes after few seconds #983

ggzengel opened this issue Dec 15, 2024 · 5 comments
Labels

Comments

@ggzengel
Copy link

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 ggzengel added 0. Needs triage bug Something isn't working labels Dec 15, 2024
@ggzengel
Copy link
Author

ggzengel commented Dec 15, 2024

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.

@nickvergessen
Copy link
Member

What is @@u %U @@ about?

@ggzengel
Copy link
Author

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
Copy link
Author

Something like this:
flatpak/flatpak#5427

@ggzengel
Copy link
Author

flathub/rs.ruffle.Ruffle#1 (comment)
Sounds like the app might be missing the appropriate background permissions in its manifest?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants