rharish101 / ReGreet

Clean and customizable greeter for greetd
GNU General Public License v3.0
422 stars 18 forks source link

Disabling portals for greeter user #88

Open ossimoi opened 1 month ago

ossimoi commented 1 month ago

When regreet starts, it activates xdg-desktop-portal via d-bus. I assume this comes from gtk4.

Sep 24 06:51:43 host dbus-daemon[5532]: [session uid=396 pid=5532 pidfd=5] Activating via systemd: service name='org.freedesktop.portal.Desktop' unit='xdg-desktop-portal.service' requested by ':1.0' (uid=396 pid=5526 comm="regreet")
Sep 24 06:51:43 host systemd[5481]: Starting Portal service...
Sep 24 06:51:43 host dbus-daemon[5532]: [session uid=396 pid=5532 pidfd=5] Activating via systemd: service name='org.freedesktop.portal.Documents' unit='xdg-document-portal.service' requested by ':1.2' (uid=396 pid=5535 comm="/usr/libexec/xdg-desktop-portal")
Sep 24 06:51:43 host systemd[5481]: Starting flatpak document portal service...
Sep 24 06:51:43 host dbus-daemon[5532]: [session uid=396 pid=5532 pidfd=5] Activating via systemd: service name='org.freedesktop.impl.portal.PermissionStore' unit='xdg-permission-store.service' requested by ':1.3' (uid=396 pid=5540 comm="/usr/libexec/xdg-document-portal")
Sep 24 06:51:43 host systemd[5481]: Starting sandboxed app permission store...

I've tried following env vars:

export GTK_USE_PORTAL=0
export GDK_DEBUG=no-portals
export GIO_USE_PORTALS=0

but none of em do the trick. FWIW export GTK_A11Y=none disables the accessibility bus just fine.

What is the correct way to get rid of portals for greeter user?

max-ishere commented 1 month ago

Why do you want to disable portals and what compositor are you using?

ossimoi commented 1 month ago

Why do you want to disable portals and what compositor are you using?

The greeter user does not need portals for anything and if something goes wrong in starting of a portal, the d-bus activation will delay the startup of greeter by 25 seconds.

This is yet again some forced non-sense from Gnome team.

I use cage for greeter and sway for main user.

max-ishere commented 1 month ago

I don't know how to do this, sorry.

ossimoi commented 2 weeks ago

Fix has been merged in gtk https://gitlab.gnome.org/GNOME/gtk/-/issues/7116

Will test it once new release is out. While GDK_DEBUG can be set in regreet.toml, was wondering if it would make sense to make it default in ReGreet.