Run script after switching user account "to the same account"
Posted
by
Peter Sivák
on Ask Ubuntu
See other posts from Ask Ubuntu
or by Peter Sivák
Published on 2012-08-29T21:00:57Z
Indexed on
2012/08/29
21:51 UTC
Read the original article
Hit count: 399
scripts
|switch-user
In Ubuntu, when I click on Switch User Account... and then choose the same account to log in (for example if my name is John Smith, I click on switch user account and then log into the John Smith account again), how can I run a script after that?
(I know, that I can run a script after "first" login by putting it in /etc/profile
file, but this script is not executed again when I choose switch user account and then immediately log in back to the same account.)
© Ask Ubuntu or respective owner