When starting from a Display Manager, /etc/X11/xinit/xinitrc.d/*.sh is sourced twice
Task Info (Flyspray) | |
---|---|
Opened By | Shun (shunf4) |
Task ID | 75184 |
Type | Bug Report |
Project | Arch Linux |
Category | Packages: Extra |
Version | None |
OS | All |
Opened | 2022-06-29 11:23:27 UTC |
Status | Assigned |
Assignee | Evangelos Foutras (foutrelis) |
Details
Description:
Why sourcing /etc/X11/xinit/xinitrc.d/.sh in /etc/xdg/xfce4/xinitrc ? When starting from a Display Manager (e.g. SDDM), /etc/X11/xinit/xinitrc.d/.sh is sourced twice:
- DM executes its Xsession script
- Xsession script sources xinitrc.d/
- Xsession executes startxfce4, as per /usr/share/xsessions/xfce.desktop
- startxfce4 sources xinitrc.d/ (This is Arch Linux specific)
Additional info:
- package version(s): xfce4-session 4.16.0-2
Steps to reproduce:
- Create /etc/X11/xinit/xinitrc.d/01-print-to-tmp.sh:
#!/bin/sh
date >> /tmp/xinitrc-sourced.log
- Start Xfce4 from SDDM.
- Print /tmp/xinitrc-sourced.log . There are two lines.