Re: Arch Linux PC as a Remote Desktop Node

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



On Mon, 30 Jul 2018 at 16:00, Ralph Corderoy <ralph@xxxxxxxxxxxxxxx> wrote:
>
> 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.

One issue here: it’s possible that the RDP client returns control to
the shell immediately (as some GUI apps will do). In that case, you’ll
need a different solution.

-- 
Chris Warrick <https://chriswarrick.com/>
PGP: 5EAAEA16




[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