rharish101 / ReGreet

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

Disabling portals for greeter user #88

Open ossimoi opened 6 days ago

ossimoi commented 6 days 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 2 days ago

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

ossimoi commented 2 days 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 20 hours ago

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