Warning~/.xprofile is a non-standard file that is sourced only when logging in via a display manager that supports it (tested only on
GDM, KDM,
LightDM,
LXDM and SDDM) and it might be distribution specific although all common distributions seem to support this file.