lilyinstarlight / nixos-cosmic

Flake for using COSMIC on NixOS
MIT License
435 stars 27 forks source link

Portal stopped working #466

Closed zerotao closed 2 weeks ago

zerotao commented 2 weeks ago

With the most recent update screenshots stopped functioning checked the journal and found the following (very similar to #406 I think):

$ journalctl -user -xe | grep portal
Nov 06 10:25:55 zeroframe cosmic-session[2380]: starting process ' DISPLAY=:1 WAYLAND_DISPLAY=wayland-1 XDG_SESSION_TYPE=wayland WAYLAND_SOCKET=81 PORTAL_WAYLAND_SOCKET=79 /nix/store/knpimgbqczy1sfvvmym5a59n29wb63wh-xdg-desktop-portal-cosmic-1.0.0-alpha.3-unstable-2024-10-10/bin/xdg-desktop-portal-cosmic '
Nov 06 10:25:55 zeroframe systemd[2359]: Started xdg-desktop-portal-cosmic.scope.
Nov 06 10:25:56 zeroframe dbus-daemon[2389]: [session uid=1000 pid=2389] Activating via systemd: service name='org.freedesktop.portal.Desktop' unit='xdg-desktop-portal.service' requested by ':1.37' (uid=1000 pid=2499 comm="/run/current-system/sw/bin/pika-backup-monitor" label="kernel")
Nov 06 10:25:56 zeroframe systemd[2359]: Starting Portal service...
Nov 06 10:25:56 zeroframe dbus-daemon[2389]: [session uid=1000 pid=2389] Activating via systemd: service name='org.freedesktop.portal.Documents' unit='xdg-document-portal.service' requested by ':1.38' (uid=1000 pid=2730 comm="/nix/store/g2k15j4b7b5lm3b3wf400x2l41ni7n8x-xdg-de" label="kernel")
Nov 06 10:25:56 zeroframe systemd[2359]: Starting flatpak document portal service...
Nov 06 10:25:56 zeroframe dbus-daemon[2389]: [session uid=1000 pid=2389] Activating via systemd: service name='org.freedesktop.impl.portal.PermissionStore' unit='xdg-permission-store.service' requested by ':1.39' (uid=1000 pid=2735 comm="/nix/store/g2k15j4b7b5lm3b3wf400x2l41ni7n8x-xdg-de" label="kernel")
Nov 06 10:25:56 zeroframe dbus-daemon[2389]: [session uid=1000 pid=2389] Successfully activated service 'org.freedesktop.impl.portal.PermissionStore'
Nov 06 10:25:56 zeroframe dbus-daemon[2389]: [session uid=1000 pid=2389] Successfully activated service 'org.freedesktop.portal.Documents'
Nov 06 10:25:56 zeroframe systemd[2359]: Started flatpak document portal service.
Nov 06 10:25:56 zeroframe dbus-daemon[2389]: [session uid=1000 pid=2389] Activating via systemd: service name='org.freedesktop.impl.portal.desktop.gtk' unit='xdg-desktop-portal-gtk.service' requested by ':1.38' (uid=1000 pid=2730 comm="/nix/store/g2k15j4b7b5lm3b3wf400x2l41ni7n8x-xdg-de" label="kernel")
Nov 06 10:25:56 zeroframe systemd[2359]: Starting Portal service (GTK/GNOME implementation)...
Nov 06 10:25:56 zeroframe dbus-daemon[2389]: [session uid=1000 pid=2389] Successfully activated service 'org.freedesktop.impl.portal.desktop.gtk'
Nov 06 10:25:56 zeroframe systemd[2359]: Started Portal service (GTK/GNOME implementation).
Nov 06 10:25:56 zeroframe dbus-daemon[2389]: [session uid=1000 pid=2389] Activating service name='org.freedesktop.impl.portal.desktop.cosmic' requested by ':1.38' (uid=1000 pid=2730 comm="/nix/store/g2k15j4b7b5lm3b3wf400x2l41ni7n8x-xdg-de" label="kernel")
Nov 06 10:25:56 zeroframe dbus-daemon[2389]: [session uid=1000 pid=2389] Activated service 'org.freedesktop.impl.portal.desktop.cosmic' failed: Failed to execute program org.freedesktop.impl.portal.desktop.cosmic: No such file or directory
Nov 06 10:25:56 zeroframe .xdg-desktop-po[2730]: Failed to create settings proxy: Error calling StartServiceByName for org.freedesktop.impl.portal.desktop.cosmic: Failed to execute program org.freedesktop.impl.portal.desktop.cosmic: No such file or directory
Nov 06 10:25:56 zeroframe dbus-daemon[2389]: [session uid=1000 pid=2389] Activating service name='org.freedesktop.impl.portal.desktop.cosmic' requested by ':1.38' (uid=1000 pid=2730 comm="/nix/store/g2k15j4b7b5lm3b3wf400x2l41ni7n8x-xdg-de" label="kernel")
Nov 06 10:25:56 zeroframe dbus-daemon[2389]: [session uid=1000 pid=2389] Activated service 'org.freedesktop.impl.portal.desktop.cosmic' failed: Failed to execute program org.freedesktop.impl.portal.desktop.cosmic: No such file or directory
Nov 06 10:25:56 zeroframe .xdg-desktop-po[2730]: Failed to create file chooser proxy: Error calling StartServiceByName for org.freedesktop.impl.portal.desktop.cosmic: Failed to execute program org.freedesktop.impl.portal.desktop.cosmic: No such file or directory
Nov 06 10:25:56 zeroframe dbus-daemon[2389]: [session uid=1000 pid=2389] Activating service name='org.freedesktop.impl.portal.desktop.cosmic' requested by ':1.38' (uid=1000 pid=2730 comm="/nix/store/g2k15j4b7b5lm3b3wf400x2l41ni7n8x-xdg-de" label="kernel")
Nov 06 10:25:56 zeroframe dbus-daemon[2389]: [session uid=1000 pid=2389] Activated service 'org.freedesktop.impl.portal.desktop.cosmic' failed: Failed to execute program org.freedesktop.impl.portal.desktop.cosmic: No such file or directory
Nov 06 10:25:56 zeroframe .xdg-desktop-po[2730]: Failed to create access proxy: Error calling StartServiceByName for org.freedesktop.impl.portal.desktop.cosmic: Failed to execute program org.freedesktop.impl.portal.desktop.cosmic: No such file or directory
Nov 06 10:25:56 zeroframe dbus-daemon[2389]: [session uid=1000 pid=2389] Activating service name='org.freedesktop.impl.portal.desktop.cosmic' requested by ':1.38' (uid=1000 pid=2730 comm="/nix/store/g2k15j4b7b5lm3b3wf400x2l41ni7n8x-xdg-de" label="kernel")
Nov 06 10:25:56 zeroframe dbus-daemon[2389]: [session uid=1000 pid=2389] Activated service 'org.freedesktop.impl.portal.desktop.cosmic' failed: Failed to execute program org.freedesktop.impl.portal.desktop.cosmic: No such file or directory
Nov 06 10:25:56 zeroframe .xdg-desktop-po[2730]: Failed to create access proxy: Error calling StartServiceByName for org.freedesktop.impl.portal.desktop.cosmic: Failed to execute program org.freedesktop.impl.portal.desktop.cosmic: No such file or directory
Nov 06 10:25:56 zeroframe dbus-daemon[2389]: [session uid=1000 pid=2389] Activating service name='org.freedesktop.impl.portal.desktop.cosmic' requested by ':1.38' (uid=1000 pid=2730 comm="/nix/store/g2k15j4b7b5lm3b3wf400x2l41ni7n8x-xdg-de" label="kernel")
Nov 06 10:25:56 zeroframe dbus-daemon[2389]: [session uid=1000 pid=2389] Activated service 'org.freedesktop.impl.portal.desktop.cosmic' failed: Failed to execute program org.freedesktop.impl.portal.desktop.cosmic: No such file or directory
Nov 06 10:25:56 zeroframe .xdg-desktop-po[2730]: Failed to create screenshot proxy: Error calling StartServiceByName for org.freedesktop.impl.portal.desktop.cosmic: Failed to execute program org.freedesktop.impl.portal.desktop.cosmic: No such file or directory
Nov 06 10:25:56 zeroframe dbus-daemon[2389]: [session uid=1000 pid=2389] Activating service name='org.freedesktop.impl.portal.desktop.cosmic' requested by ':1.38' (uid=1000 pid=2730 comm="/nix/store/g2k15j4b7b5lm3b3wf400x2l41ni7n8x-xdg-de" label="kernel")
Nov 06 10:25:56 zeroframe dbus-daemon[2389]: [session uid=1000 pid=2389] Activated service 'org.freedesktop.impl.portal.desktop.cosmic' failed: Failed to execute program org.freedesktop.impl.portal.desktop.cosmic: No such file or directory
Nov 06 10:25:56 zeroframe dbus-daemon[2389]: [session uid=1000 pid=2389] Activating service name='org.freedesktop.impl.portal.desktop.cosmic' requested by ':1.38' (uid=1000 pid=2730 comm="/nix/store/g2k15j4b7b5lm3b3wf400x2l41ni7n8x-xdg-de" label="kernel")
Nov 06 10:25:56 zeroframe dbus-daemon[2389]: [session uid=1000 pid=2389] Activated service 'org.freedesktop.impl.portal.desktop.cosmic' failed: Failed to execute program org.freedesktop.impl.portal.desktop.cosmic: No such file or directory
Nov 06 10:25:56 zeroframe .xdg-desktop-po[2730]: Failed to create screen cast proxy: Error calling StartServiceByName for org.freedesktop.impl.portal.desktop.cosmic: Failed to execute program org.freedesktop.impl.portal.desktop.cosmic: No such file or directory
Nov 06 10:25:56 zeroframe dbus-daemon[2389]: [session uid=1000 pid=2389] Successfully activated service 'org.freedesktop.portal.Desktop'
Nov 06 10:25:56 zeroframe systemd[2359]: Started Portal service.

The portal does appear to be running though:

$ ps ax | grep protal
   2517 tty1     Sl+    0:01 /nix/store/knpimgbqczy1sfvvmym5a59n29wb63wh-xdg-desktop-portal-cosmic-1.0.0-alpha.3-unstable-2024-10-10/bin/xdg-desktop-portal-cosmic
   2730 ?        Ssl    0:00 /nix/store/g2k15j4b7b5lm3b3wf400x2l41ni7n8x-xdg-desktop-portal-1.18.4/libexec/xdg-desktop-portal
   2735 ?        Ssl    0:00 /nix/store/g2k15j4b7b5lm3b3wf400x2l41ni7n8x-xdg-desktop-portal-1.18.4/libexec/xdg-document-portal
   2739 ?        Ssl    0:00 /nix/store/g2k15j4b7b5lm3b3wf400x2l41ni7n8x-xdg-desktop-portal-1.18.4/libexec/xdg-permission-store
   2746 ?        Ss     0:00 fusermount3 -o rw,nosuid,nodev,fsname=portal,auto_unmount,subtype=portal -- /run/user/1000/doc
   2749 ?        Ssl    0:00 /nix/store/kfqvysxbh9iwh0knzy5drl5caxlxj6nc-xdg-desktop-portal-gtk-1.15.1/libexec/xdg-desktop-portal-gtk
  10876 pts/0    S+     0:00 grep portal

Not sure how to proceed in debugging it...

zerotao commented 2 weeks ago

I ended up rebuilding that machine and the issue 'went away', so I suspect, I somehow my derivation got out of wack.