In Saucy salamander I need to run a script each time I login then each time I unlock the session after manual lock or auto sleep. I can't use "Startup Application" for that because it wouldn't trigger on unlock.
In Saucy salamander I need to run a script each time I login then each time I unlock the session after manual lock or auto sleep. I can't use "Startup Application" for that because it wouldn't trigger on unlock.
Found this, which was made by Ubuntu Forums user opus1. Maybe it can help.
This is what the post gives as a solution:
.bashrc
will be the place you want to use for that process..bashrc
holds users' profile and all of configurations, and that's what system will read first thing when you log in, therefore that's where you want to put your codes for your customized scripts to run upon logging in.Here's an example from my codes that I use. This is code I added to the bottom line of .bashrc:
And
.myscripts
holds my scripts in bash shell that I want to be fired off when I log in.