I have changed my cursor theme system-wide in this way:
/etc/rc.local:
#!/bin/bash -e
rm -f /tmp/HOME
while [[ ! -f /tmp/HOME ]]
do
sleep 1
done
HOME=$(< /tmp/HOME)
if [[ -f $HOME/.icons/default/index.theme ]]; then
ln -sf $HOME/.icons/default/index.theme /etc/alternatives/x-cursor-theme
fi
# apply changes now.
exit 0
/etc/profile.d/write_home_dir_in_tmp_folder.sh:
echo ~ > /tmp/HOME
This way after reboot, if x-cursor-theme still pointed to the old path, once pointed to the user path, the changes are not applied and are only applied from the second reboot onwards. It would take another line in the rc.local file that "apply changes now.". I've searched the internet but can't find an answer. Can someone help me?
P.S.
pstree | grep session returns an empty string.
wmctrl -m returns:
Name: Mutter (Muffin)
Class: N/A
PID: N/A
Window manager's "showing the desktop" mode: N/A
echo $DESKTOP_SESSION returns:
cinnamon
echo $GDMSESSION returns:
cinnamon
echo $XDG_CURRENT_DESKTOP returns:
X-Cinnamon