Re: Arch Linux PC as a Remote Desktop Node

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux