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

Clapper flatpak won't launch on NixOS #389

Closed
ahydronous opened this issue Nov 29, 2023 · 7 comments
Closed

Clapper flatpak won't launch on NixOS #389

ahydronous opened this issue Nov 29, 2023 · 7 comments

Comments

@ahydronous
Copy link

ahydronous commented Nov 29, 2023

The Clapper flatpak currently won't launch unless launched from the Software center or manually via the CLI.

I suspect it is the same problem the Telegram flatpak has, as it exhibits the same issues and is worked around via the same tricks.

Here is the relevant Github issue: telegramdesktop/tdesktop#27134 (comment) and they have already fixed it

@Rafostar
Copy link
Owner

Rafostar commented Nov 29, 2023

I do not think this is the same issue here. We do not use Qt but GTK instead.

If this was a fresh install from store, a reboot might fix this. I have actually seen issues where newly installed apps that launch with D-Bus need to restart D-Bus service for it to work with them for some reason.

@Rafostar Rafostar added the awaiting feedback Waiting for response label Nov 29, 2023
@ahydronous
Copy link
Author

A reboot did not help, nor did an uninstall + reboot + reinstall + reboot.

If I click the icon to launch Clapper, it immediately, silently fails to launch. If I try to open an associated media file, it shows a spinner if I hover over my panel, but silently fails after trying for ~15s.

Is there anything I can do to diagnose the issue further?

@Rafostar Rafostar removed the awaiting feedback Waiting for response label Nov 29, 2023
@Rafostar
Copy link
Owner

In this case, the best place to look at what is going on on your system is probably journalctl

@ahydronous
Copy link
Author

ahydronous commented Nov 29, 2023

The guilty error

nov 29 20:43:06 solaris-v3 dbus-daemon[1676]: [session uid=1000 pid=1676] Activating service name='com.github.rafostar.Clapper' requested by ':1.11' (uid=1000 pid=1767 comm="/nix/store/qp8wzqrlgk6b1a4gh6px8p3j08dvzbrd-gnome-" label="kernel")
nov 29 20:43:06 solaris-v3 dbus-daemon[1676]: [session uid=1000 pid=1676] Activated service 'com.github.rafostar.Clapper' failed: Failed to execute program com.github.rafostar.Clapper: No such file or directory

I'm on NixOS so I'm guessing that has something to do with it. I tried doing it extra clean with a full nixos-rebuild boot and then the full song and dance of uninstall-reboot-install-reboot, but its still not working due to being unable to find the install.

If I had to guess, maybe Clapper (or the flatpak) writes some hardcoded paths somewhere?

@ahydronous ahydronous changed the title Clapper flatpak won't launch, fix in comment Clapper flatpak won't launch Nov 29, 2023
@Rafostar
Copy link
Owner

@Rafostar
Copy link
Owner

Clapper also uses DBusActivatable=true to launch via DBus like mentioned there. As far as i see, fix was merged to NixOS not long ago (on October 3): NixOS/nixpkgs#222678

Dunno when these fixes reach end users, not really familiar with NixOS.

@Rafostar Rafostar changed the title Clapper flatpak won't launch Clapper flatpak won't launch on NixOS Nov 29, 2023
@ahydronous
Copy link
Author

ahydronous commented Nov 29, 2023

I'll try a nixos-update later tonight. If that doesn't fix it, It'll probably be fixed with 23.11 (current is 23.05 but 23.11 will launch very soon).

Thanks for bearing with me and finding the relevant NixOS problem!

I'll link the relevant issue just for posterity: NixOS/nixpkgs#138956

Edit 2023/12/02: isn't fixed in NixOS 23.11 so far

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

No branches or pull requests

2 participants