After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 789652 - gdm with wayland session is unable to run zenity in PostLogin
gdm with wayland session is unable to run zenity in PostLogin
Status: RESOLVED OBSOLETE
Product: gdm
Classification: Core
Component: general
3.26.x
Other Linux
: Normal major
: ---
Assigned To: GDM maintainers
GDM maintainers
Depends on:
Blocks:
 
 
Reported: 2017-10-30 14:35 UTC by David Heidelberg
Modified: 2018-05-24 11:41 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description David Heidelberg 2017-10-30 14:35:17 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
Comment 1 David Heidelberg 2017-11-07 11:47:52 UTC
Friendly remainder, since I'm not only one with this bug.
Comment 2 Ray Strode [halfline] 2017-11-07 14:20:30 UTC
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.
Comment 3 David Heidelberg 2017-11-07 14:30:28 UTC
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?
Comment 4 Ray Strode [halfline] 2017-11-07 15:25:22 UTC
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.
Comment 5 GNOME Infrastructure Team 2018-05-24 11:41:53 UTC
-- 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.