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

Closed
ossimoi opened this issue Sep 24, 2024 · 5 comments · Fixed by #104
Closed

Disabling portals for greeter user #88

ossimoi opened this issue Sep 24, 2024 · 5 comments · Fixed by #104
Labels
confirmed bug Something is confirmed to be broken enhancement New feature or request

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.

@rharish101
Copy link
Owner

Cool, so I just need to add GDK_DEBUG=no-portals, right?

@rharish101 rharish101 added confirmed bug Something is confirmed to be broken enhancement New feature or request labels Dec 22, 2024
rharish101 added a commit that referenced this issue Dec 22, 2024
rharish101 added a commit that referenced this issue Dec 30, 2024
rharish101 added a commit that referenced this issue Dec 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
confirmed bug Something is confirmed to be broken enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants