flathub / org.gnome.Polari

https://flathub.org/apps/details/org.gnome.Polari
3 stars 3 forks source link

gapplication launch fails with DBus.Error.NoReply #26

Open o-alquimista opened 9 months ago

o-alquimista commented 9 months ago

I have a working flatpak installation on Void Linux, setup with flathub as a user installation (rootless). After installing Polari and activating its menu item, nothing happens. To see what happens, I looked for the respective .desktop file, and found out that it executes gapplication launch org.gnome.Polari %U. Here's the output of running it myself:

error sending Activate message to application: GDBus.Error:org.freedesktop.DBus.Error.NoReply: Message recipient disconnected from message bus without replying

However, if I run flatpak run org.gnome.Polari, it just works.

Interesting note: with Polari already running, clicking its menu item actually brings Polari into focus (if not already).

System info

xdg-desktop

When searching for similar reports I came across mentions of "xdg-desktop". Note that it's already running:

$ ps aux | grep xdg-desktop
my_user    2404  0.0  0.0 749680 13184 tty1     Sl   19:00   0:01 /usr/libexec/xdg-desktop-portal
my_user    2430  0.0  0.1 417512 27316 tty1     Sl   19:00   0:00 /usr/libexec/xdg-desktop-portal-gtk

Does it require the GNOME portal? I wonder. UPDATE: installed it, but no change.

DBus info

o-alquimista commented 9 months ago

As a workaround, override the .desktop file:

cp ~/.local/share/flatpak/app/org.gnome.Polari/current/active/export/share/applications/org.gnome.Polari.desktop ~/.local/share/applications/

Edit org.gnome.Polari.desktop and change the Exec= line.

-Exec=/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=gapplication
--file-forwarding org.gnome.Polari launch org.gnome.Polari @@u %U @@
+Exec=flatpak run org.gnome.Polari