Thread: Run command when logout is initiated
i had script running when lightdm's session exits, of raring script runs late job done
need run "gmusicbrowser -cmd quit" click shutdown/logout
using, ran root lightdm's session cleanup script
code:pid="`pgrep -f gmusicbrowser | head -1`" if [ "0$pid" -gt "0" ]; user=$(ps aux | awk '{print $1" "$2}' | grep $pid | awk '{print $1}') sudo -u $user gmusicbrowser -cmd quit fi
i not know how that, need set priority script, or teach logout process (kind of while !=logout)
Forum The Ubuntu Forum Community Ubuntu Specialised Support Ubuntu Development Version Run command when logout is initiated
Ubuntu
Comments
Post a Comment