ghostty: prevent service restarts
Stopping or restarting the service will destroy open Ghostty sessions, potentially disrupting work. This change ensures that we leave the existing service untouched. Fixes #8485
This commit is contained in:
parent
6e94d8157c
commit
4e8b7bef66
4 changed files with 44 additions and 1 deletions
|
|
@ -224,8 +224,15 @@ in
|
|||
message = "Ghostty systemd integration cannot be enabled for non-linux platforms";
|
||||
}
|
||||
];
|
||||
|
||||
xdg.configFile."systemd/user/app-com.mitchellh.ghostty.service".source =
|
||||
"${cfg.package}/share/systemd/user/app-com.mitchellh.ghostty.service";
|
||||
|
||||
xdg.configFile."systemd/user/app-com.mitchellh.ghostty.service.d/overrides.conf".text = ''
|
||||
[Unit]
|
||||
X-SwitchMethod=keep-old
|
||||
'';
|
||||
|
||||
dbus.packages = [ cfg.package ];
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue