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,8 +17,15 @@
# todo test it
# if kodi crashes restart the whole xsession to trigger the login
extraConfig = ''
session-cleanup-script=service lightdm restart
extraConfig = let
restartScript = pkgs.writers.writeBash "cleanup"
''
trap "" SIGHUP SIGINT SIGTERM
${pkgs.systemd}/bin/systemctl restart display-manager.service
'';
in
''
session-cleanup-script=${restartScript}
'';
};
};