User .xinitrc not run with GDM

Paul Menzel pmenzel+xfce at
Wed Nov 22 17:00:33 CET 2017

Dear Xfce folks,

Trying to implement the suggestion from the thread *Monitor dependent 
DPI size with shared home* [1] by adding a custom user xinitrc script, 
it unfortunately isn’t run. Xfce 4.12 is started from GDM.

$ ls -l ~/.xinitrc
-rwxr-xr-- 1 joey joey 134 Nov 22 16:21 /home/joey/.xinitrc
$ more ~/.xinitrc

date >> /dev/shm/runornot

if xrandr --listmonitors | grep -q 3840; then
   xfconf-query -c xsettings -p /Xft/DPI -s 192

`/dev/shm/runornot` is not created, so it’s not run.

Below is the desktop file used.

$ more /usr/share/xsessions/00-default.desktop
[Desktop Entry]
Name=Default - Xfce4 Desktop (recommended)
Comment=Use this session to run Xfce as your desktop environment
Exec=ck-launch-session startxfce4

Is `.xinitrc` the right place to configure Xfce with `xfconf-query` in 
this setup?

Kind regards,



-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5174 bytes
Desc: S/MIME Cryptographic Signature
URL: <>

More information about the Xfce mailing list