Closed zigarn closed 2 years ago
Found a way to reload sessions that is working on both terminal & desktop modes.
Ping @pyaillet @awattez @y0an @ebriand WDYT?
I just test it on a fresh ubuntu desktop install. This seems to work. The session is killed and after reconnection, docker ps works as expected. But no script can be executed after this command. So to used it, this need to be done in a script called after all others.
So for docker, the best is maybe to call newgrp docker
to allow the use of docker command in the current shell and call the script containing the loginctl terminate-user ubuntu
after all scripts
As the init script in Strigo is executed in the background as root
, it does continue without any issue after this command, the ubuntu
user is just momentarily kicked out from terminal or desktop.
On the opposite, using newgrp docker
in the init script won't have any effect on the opened sessions of the ubuntu
user, only the script session of root
who doesn't need it.
Ok. I just test it on strigo. This works fine.
LGTM 😉
@pyaillet : pure découverte pour moi aussi !
No tmux in Desktop environments
Fixes #32