Change:
<ins> diff --git a/common/flatpak-dir.c b/common/flatpak-dir.c index eba81fef..134024e2 100644 --- a/common/flatpak-dir.c +++ b/common/flatpak-dir.c @@ -7532,8 +7532,13 @@ export_desktop_file (const char         *app, g_key_file_remove_key (keyfile, groups[i], "X-GNOME-Bugzilla-ExtraInfoScript", NULL); new_exec = g_string_new (""); -      if ((flatpak = g_getenv ("FLATPAK_BINARY")) == NULL) -        flatpak = FLATPAK_BINDIR "/flatpak"; +      if (g_str_has_suffix (name, ".service")) +      { +        flatpak = "/run/current-system/sw/bin/flatpak"; +      } else { +        if ((flatpak = g_getenv ("FLATPAK_BINARY")) == NULL) +          flatpak = "flatpak"; +      } g_string_append_printf (new_exec, "%s run --branch=%s --arch=%s", @@ -8867,7 +8872,7 @@ flatpak_dir_deploy (FlatpakDir          *self, error)) return FALSE; if ((flatpak = g_getenv ("FLATPAK_BINARY")) == NULL) -        flatpak = FLATPAK_BINDIR "/flatpak"; +        flatpak = "flatpak"; bin_data = g_strdup_printf ("#!/bin/shnexec %s run --branch=%s --arch=%s %s "$@"n", flatpak, escaped_branch, escaped_arch, escaped_app); </ins>

Discussion:
When trying to start a flatpak which contains in its .desktop file it refuses to start (tested in GNOME shell). Commenting out (tested in copied .desktop to home dir) or just seems to work fine. Steps to reproduce the behavior: e.g. it from GNOME shell Flatpak should open.
Try this, maybe it'll give a error or something foot terminal used as a example desktop file in share/applications
Pre-requisite would be Flatpak linking D-Bus service files to a well-known location. Not sure if it currently does that.
there is nothing. Tbh i don't get how this helps. FWIW gnome-maps (also with dbus actication) installed with nix works; the gnome-maps flatpak not.
on both my Fedora Silverblue machine and NixOS machine the services are symlinked to the same location if that's what you mean.
Maybe we need to add to :
! ! !
Did you try adding the path to ?
yes got to /etc/dbus- doesn't work
this is what i have for now i switched to dbus-broker since fedora is using that and it has better logs it does find the geany service file but it if someone wants to try: this patch applied to nixos-unstable branch very rough for now to run this vm
I marked this as stale due to inactivity. &rarr;
I am still having this issue in 22.05 and the 22.11 unstable channel. I get the following log output when trying to launch one of the Flatpaks in question:
This issue has been mentioned on NixOS Discourse. There might be relevant details there:
This issue has been mentioned on NixOS Discourse. There might be relevant details there:
The patch hasn't been applied to unstable. The issue still persists...
Here's my fix for the issue if you use : This "solution" is based on the fact launch services via systemd using transient units with prefix . however does not have in its and these transient units do not have them specified either. The drop-in is used to point systemd to where it could find flatpak. EDIT: Updated to not use as it injects environment variables override that may break other applications.
Same issue on unstable
This issue has been mentioned on NixOS Discourse.

There might be relevant details there:
Having the same issue on nixos unstable channel
Same issue on 23.05
I'm experiencing the same behaviour in sway with gnome.nautilus and flatpaks. However, the error I receive from .nautilus-wrapp gives errors, so may be unrelated.
This seems like quite a critical issue, any updates? Same error.
This issue has been mentioned on NixOS Discourse. There might be relevant details there: