Timeline for Run script on log in and as the user loggin in (not the root)
Current License: CC BY-SA 3.0
10 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 3, 2016 at 8:51 | vote | accept | Hellfar | ||
Oct 3, 2016 at 8:51 | vote | accept | Hellfar | ||
Oct 3, 2016 at 8:51 | |||||
Sep 29, 2016 at 14:44 | comment | added | Hellfar |
(Sorry for the newlines...). I tried with the ~/.config/autostart and it does not launch at log in either. Tried mannualy to do: $ IFS== read var query <<< `cat .config/autostart/screenlogger.desktop | grep Exec` $query And works fine. Didn't find anything about ~/.autostart/ .
|
|
Sep 29, 2016 at 11:54 | answer | added | l0b0 | timeline score: 0 | |
Sep 29, 2016 at 11:06 | comment | added | linuxdev2013 | if its desired to run at 'login' time put it in that users' .autostart folder on a *nix machine ~/.autostart/ OR ~/scripts and have something in the $(shell)rc calling that ~/scripts/foo.sh | |
Sep 29, 2016 at 10:22 | comment | added | Hastur | ... another specification request: do you want to execute the script at boot time (when computer starts) or at log-in time (when a specific user logs)? | |
Sep 29, 2016 at 10:21 | comment | added | sysfiend |
Have you tried using su and becoming the user you want to be executing that script?
|
|
Sep 29, 2016 at 10:16 | review | First posts | |||
Sep 30, 2016 at 13:25 | |||||
Sep 29, 2016 at 10:15 | comment | added | Hastur |
$HOME is a variable set for each single user... it is not global. What do you really want: to run as if the user x is logged or only to run from that user home? It's different... Ps> welcome (out) on SuperUser
|
|
Sep 29, 2016 at 10:11 | history | asked | Hellfar | CC BY-SA 3.0 |