porani: wip on relogin on kodi crash

This commit is contained in:
Ingolf Wagner 2019-12-16 21:57:09 +13:00
parent 5555dfc48a
commit fb821882d3
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B

View file

@ -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}
'';
}; };
}; };