[arch-general] Arch Linux PC as a Remote Desktop Node

Ralph Corderoy ralph at inputplus.co.uk
Mon Jul 30 14:00:44 UTC 2018


Hi Mike,

> How can I automatically detect that FreeRDP session has been closed so
> that I can run a small Zenity script?

Well, a script is probably being run, just like a .xinitrc might be,
and instead of its normal

    xclock &
    xbiff &
    xterm &
    exec twm

to start a bunch of X clients in the background and then replace xinit
with the window manager, ending the session when the WM quits, you could

    twm &
    rdp-client
    timeout 30 zenity ...
    # ...conditionally reboot, shutdown, or just re-start X server when
    # it exits to get a fresh rdp-client.

so sh(1) waits for rdp-client to exit before executing further commands.

-- 
Cheers, Ralph.
https://plus.google.com/+RalphCorderoy


More information about the arch-general mailing list