kodi: relogin if crashing

This commit is contained in:
Ingolf Wagner 2019-12-18 16:36:40 +13:00
parent 85fd36d2e8
commit 6bc8b18f97
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B

View file

@ -10,23 +10,15 @@
default = "kodi"; default = "kodi";
xterm.enable = false; xterm.enable = false;
}; };
displayManager.lightdm = { displayManager ={
enable = true; sddm = {
autoLogin.enable = true; enable = true;
autoLogin.user = config.users.users.kodi.name; autoLogin = {
enable = true;
# todo test it relogin = true;
# if kodi crashes restart the whole xsession to trigger the login user = config.users.users.kodi.name;
extraConfig = let };
restartScript = pkgs.writers.writeBash "cleanup" };
''
trap "" SIGHUP SIGINT SIGTERM
${pkgs.systemd}/bin/systemctl restart display-manager.service
'';
in
''
session-cleanup-script=${restartScript}
'';
}; };
}; };