mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-11 17:39:37 +08:00
xsession: only require xdg autostart target if explicitely enabled (#8237)
This is a fix for PR #7108 that forcibly enables xdg-desktop-autostart
units, whether or not `config.xdg.autostart` is enabled.
Partially fixes #7708, there is still a risk for conflict if
`xdg.autostart` and `services.picom` are enabled.
(cherry picked from commit b1bb534c17)
This commit is contained in:
@@ -188,10 +188,13 @@ in
|
||||
hm-graphical-session = {
|
||||
Unit = {
|
||||
Description = "Home Manager X session";
|
||||
Requires = [
|
||||
"graphical-session-pre.target"
|
||||
"xdg-desktop-autostart.target"
|
||||
];
|
||||
Requires =
|
||||
let
|
||||
requires = lib.optional (config.xdg.autostart.enable) "xdg-desktop-autostart.target" ++ [
|
||||
"graphical-session-pre.target"
|
||||
];
|
||||
in
|
||||
requires;
|
||||
BindsTo = [
|
||||
"graphical-session.target"
|
||||
"tray.target"
|
||||
|
||||
Reference in New Issue
Block a user