I want to do something where I animate my desktop background when the computer boots up. However, I can't seem to find a way to make it run ONLY when I can see it running. When I put the script in init.d, it seems to work, but it runs before I can see the desktop background. Can I make it only run when the computer has fully booted up, or when the user logs in?
(I am using Ubuntu 20.04 LTS)
I ran into this same problem when trying to get a login sound played in XFCE. What I did was create a user service (called xfce4-login-sound.service) and placed the file in $HOME/.config/systemd/user:
Afterwards, I enabled the service: