GNOME Bugzilla – Bug 789652
gdm with wayland session is unable to run zenity in PostLogin
Last modified: 2018-05-24 11:41:53 UTC
I wanted to run Zenity directly in /etc/gdm/PostLogin/Default but sadly it seems that GDM is unable to display window of Zenity and keep session frozen. I tried define XDG_RUNTIME_DIR=/run/user/114 # GDM or actual logged user - won't work anyway GDK_BACKEND=wayland Nothing printed in logs (except message about inheriting window, but that's displayed even in desktop environment, when Zenity works just fine) Any ideas, where can be bug? Also can test patches or git. Thank you Distribution bug: https://bugs.gentoo.org/634636 Version: 3.26.1
Friendly remainder, since I'm not only one with this bug.
The login screen doesn't have the ability to show windows. I don't think we're going to change that in the near future. A better tactic might be to use /etc/xdg/autostart with an early X-GNOME-Autostart-Phase to run your dialog in the user's session.
as I understood, this functionality has been available with gdm running on X server. The trick is, that I need user input directly before accessing /home folder, but already in user session. Do you have any idea, how can I do that without this functionality?
Honestly, your best bet is a little pam module that asks the user the question, in the same way a pam module currently asks the user for their password. Unfortunately, i don't think there are any pam modules out of the box that let you ask a configurable question (but maybe i'm wrong? Maybe pam_exec ?), so you'll probably have to write a tiny one on your own.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gdm/issues/340.