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 783497 - gdm does not run /etc/gdm/*/Default scripts properly!
gdm does not run /etc/gdm/*/Default scripts properly!
Status: RESOLVED OBSOLETE
Product: gdm
Classification: Core
Component: general
3.22.x
Other Linux
: Normal normal
: ---
Assigned To: GDM maintainers
GDM maintainers
Depends on:
Blocks:
 
 
Reported: 2017-06-06 23:51 UTC by Anthony Thyssen
Modified: 2018-05-24 11:36 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Anthony Thyssen 2017-06-06 23:51:04 UTC
Linux System Fedora 25

According to the manual GDM is supposed to run the four scripts
/etc/gdm/Init/Default
/etc/gdm/PostLogin/Default
/etc/gdm/PreSession/Default
/etc/gdm/PostSession/Default
in that order at the appropriate times.


Problems....

1/ Init/default script is not being run at all!

2/ while in other scripts the DISPLAY and XAUTHORITY environment settings are set to empty strings!  In other words... Useless!

Testing...
Added this script to each script, at bottom...

( echo "/etc/gdm/Init/Default on `date +'%F_%T'`"
  env
  echo "==================================================================="
) >>/var/tmp/gdm_env.txt 2>&1
exit 0

Set up log file (ensure writable by anyone)

touch /var/tmp/gdm_env.txt
chmod 666 /var/tmp/gdm_env.txt


Example logged output...

/etc/gdm/PostLogin/Default on 2017-06-07_09:20:15
SHELL=/bin/bash
USER=anthony
USERNAME=anthony
PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin
PWD=/
SHLVL=1
HOME=/home/anthony
LOGNAME=anthony
DISPLAY=
RUNNING_UNDER_GDM=true
XAUTHORITY=
_=/usr/bin/env
===================================================================



ASIDE: I am doing this because I can't see the GDM login as it appears on the LCD screen of my closes laptop, rather than the monitor.  I can login, just can't see the login prompts.  I want to switch the display from a 'stacked vertically' ot a 'cloned display' setup.  Othe rsolutions on the web does
Comment 1 GNOME Infrastructure Team 2018-05-24 11:36:39 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/317.