Hello Ben,

Your login manager invokes the correct script based on the selected desktop, and your personal one in ~/.config/xfce4/xinitrc takes precedence over /etc/xdg/xfce4/xinitrc . The last line just tells sh to source (run) the official /etc/xdg/xfce4/xinitrc , but you get to set your environment variables *first* so they affect everything in Xfce including services and desktop components. I do not know if this is documented succinctly in one place, but that is my understanding of how it works.
Your understanding is correct. A quick Googling gave some helpful results. Take a look at the 'How to customize starting Xfce' section at the below link:

https://wiki.xfce.org/tips

Thank you for sharing it with me.

Thanks,
Subhadip


On Tuesday 20 March 2018 09:05 AM, Ben Caradoc-Davies wrote:
On 20/03/18 16:13, Subhadip Ghosh wrote:
Hi Ben,
Under XFCE, I have ~/.config/xfce4/xinitrc something like this:
#!/bin/sh
export LC_COLLATE=C
export PATH=$HOME/bin:$PATH
export QT_QPA_PLATFORMTHEME=gtk2
export GTK_OVERLAY_SCROLLING=0
umask 007
. /etc/xdg/xfce4/xinitrc
Thanks for telling me this. Since I also use Xfce, it makes sense for me to go this route. Can you tell me where I can read more about this file preferably in the context of Xfce?

This is a standard xinit script (like ~/.xinitrc, see "man xinit") but to support switching between different desktops, scripts in /etc follow XDG rather than having a single ~/.xinitrc :
https://wiki.archlinux.org/index.php/XDG_Base_Directory_support

Your login manager invokes the correct script based on the selected desktop, and your personal one in ~/.config/xfce4/xinitrc takes precedence over /etc/xdg/xfce4/xinitrc . The last line just tells sh to source (run) the official /etc/xdg/xfce4/xinitrc , but you get to set your environment variables *first* so they affect everything in Xfce including services and desktop components. I do not know if this is documented succinctly in one place, but that is my understanding of how it works.

Kind regards,


Reply via email to