Unable to run Unison on logoff

Everything about X, Gnome, KDE, ... and everything running on it

Unable to run Unison on logoff

Postby slavus1 » 2018-11-13 13:44

I'm trying to sync user data on logoff but I have been unable to find the correct placement of the command "unison -auto -batch -silent $USER" . This works correctly on log in but I have yet to find the correct placement for logoff.
Debian 9 -> Gnome
slavus1
 
Posts: 2
Joined: 2018-11-09 20:31

Re: Unable to run Unison on logoff

Postby bw123 » 2018-11-13 17:22

I'm guessing it would depend on how you logoff, and on gnome that would be gdm? or is it gdm3 now?
Probably no $USER left after logoff, so you'll have to catch it before.
What method do you use to run it at login?

Did you do some searches on internets? maybe... run script gnome logoff
User avatar
bw123
 
Posts: 3572
Joined: 2011-05-09 06:02
Location: TN_USA

Re: Unable to run Unison on logoff

Postby slavus1 » 2018-11-13 21:10

I added the command to the ~/.profile and it runs just fine. I have tried /gdm3/PostSession/Default but that didn't work. Also tried ~/.bash_logout with no luck either.
slavus1
 
Posts: 2
Joined: 2018-11-09 20:31


Return to Desktop & Multimedia

Who is online

Users browsing this forum: No registered users and 6 guests

fashionable