I'd echo Greg in that the simplest answer might lie with using systemd's
facility for this, but,

On Thu, Nov 18, 2021 at 02:34:52PM -0600, David Wright wrote:
# ~/.xsession contents
# now start your clients and programs, all backgrounded with &

^^
This would be the point at which OP would invoke unison,
…

# at the end of the file is one foreground program:

# wait for the window manager in the background to die
wait $Wmpid

# end-of-file

^^
when the WM dies, code here could be used to kill the unison process
(or send it a signal or anything else needed)


--
Please do not CC me for listmail.

👱🏻      Jonathan Dowland
✎        j...@debian.org
🔗       https://jmtd.net

Reply via email to