I want to run a script as root after a login as a regular user in GDM.


marked as duplicate by dessert, storm, Byte Commander, Zanna, user117103 Oct 7 '17 at 20:15

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


I added command into ~/.xprofile, because it had to be run after the login and it uses X11. Now, it works.

Not the answer you're looking for? Browse other questions tagged or ask your own question.