Avoid enabling getty@tty1.service when enabling xfce

This commit is contained in:
Chen Chengjun 2025-12-11 09:38:54 +00:00 committed by Tate, Hongliang Tian
parent 3859d5f68d
commit dff1cffcaf
1 changed files with 4 additions and 0 deletions

View File

@ -15,6 +15,10 @@ in {
description = "XFCE Desktop Environment";
after = [ "getty.target" ];
wantedBy = [ "multi-user.target" ];
# XFCE needs exclusive access to tty1 to prevent the getty login prompt
# from interfering with the graphical display. This conflict ensures
# that getty@tty1.service does not run alongside the XFCE desktop.
conflicts = [ "getty@tty1.service" ];
serviceConfig = {
Environment = "DISPLAY=:0";
ExecStart = "${startXfce}/bin/start_xfce";