I'd like my PC to shutdown straight after I close my remmina remote connection. I searched for solutions but remmina itself shows abnormal behavior.
someprogram && sudo shutdown -h 0
Running this command works, and the PC shuts down after closing someprogram. However, it only works because someprogram halts the terminal session until it is closed. After which sudo shutdown can execute
remmina -c path/to/connection/file && sudo shutdown -h 0
Running this command shuts down the PC straight away since remmina doest halt the terminal session. I'd like remmina to have the same behavior as the someprogramm. Is it somehow doable to get remmina to halt the session?
firefox && sudo shutdown -h 0
PC shuts down after Firefox is closed.
remmina && sudo shutdown -h 0
PC shuts down straight away.