porani: wip on relogin on kodi crash
This commit is contained in:
parent
5555dfc48a
commit
fb821882d3
1 changed files with 9 additions and 2 deletions
|
@ -17,9 +17,16 @@
|
||||||
|
|
||||||
# todo test it
|
# todo test it
|
||||||
# if kodi crashes restart the whole xsession to trigger the login
|
# if kodi crashes restart the whole xsession to trigger the login
|
||||||
extraConfig = ''
|
extraConfig = let
|
||||||
session-cleanup-script=service lightdm restart
|
restartScript = pkgs.writers.writeBash "cleanup"
|
||||||
|
''
|
||||||
|
trap "" SIGHUP SIGINT SIGTERM
|
||||||
|
${pkgs.systemd}/bin/systemctl restart display-manager.service
|
||||||
'';
|
'';
|
||||||
|
in
|
||||||
|
''
|
||||||
|
session-cleanup-script=${restartScript}
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue