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
pstree | grep session
wmctrl -m
echo $DESKTOP_SESSION
echo $GDMSESSION
– lemrm Dec 19 '21 at 17:40echo $XDG_CURRENT_DESKTOP
-- Or -- you could try something like this from here
– lemrm Dec 20 '21 at 10:39gsettings set org.gnome.desktop.interface cursor-theme "$CURSOR" && sudo update-alternatives --set x-cursor-theme <the path you like>/$CURSOR/cursor.theme