Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disabling portals for greeter user #88

Open
ossimoi opened this issue Sep 24, 2024 · 4 comments
Open

Disabling portals for greeter user #88

ossimoi opened this issue Sep 24, 2024 · 4 comments

Comments

@ossimoi
Copy link

ossimoi commented Sep 24, 2024

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
Copy link
Contributor

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

@ossimoi
Copy link
Author

ossimoi commented Sep 28, 2024

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
Copy link
Contributor

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

@ossimoi
Copy link
Author

ossimoi commented Oct 27, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants