I want to run a script as root after a login as a regular user in GDM.
Thanks
I added command into ~/.xprofile, because it had to be run after the login and it uses X11. Now, it works.
~/.xprofile