User .xinitrc not run with GDM

Paul Menzel pmenzel+xfce at molgen.mpg.de
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
#!/bin/sh

date >> /dev/shm/runornot

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

`/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]
Version=1.0
Name=Default - Xfce4 Desktop (recommended)
Comment=Use this session to run Xfce as your desktop environment
Exec=ck-launch-session startxfce4
Icon=
Type=Application
```

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


Kind regards,

Paul


[1] https://mail.xfce.org/pipermail/xfce/2017-November/thread.html#35822


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5174 bytes
Desc: S/MIME Cryptographic Signature
URL: <https://mail.xfce.org/pipermail/xfce/attachments/20171122/923f53b6/attachment.bin>


More information about the Xfce mailing list