linux: add install target to systemd user service (#7757)

This will allow users to enable Ghostty startup on login. Users will
need to explicitly enable startup on login via this command:

```sh
systemctl enable --user com.mitchellh.ghostty.service
```
This commit is contained in:
Mitchell Hashimoto
2025-07-01 16:03:58 -07:00
committed by GitHub

View File

@ -1,7 +1,11 @@
[Unit] [Unit]
Description=@NAME@ Description=@NAME@
After=graphical-session.target
[Service] [Service]
Type=dbus Type=dbus
BusName=@APPID@ BusName=@APPID@
ExecStart=@GHOSTTY@ --launched-from=systemd ExecStart=@GHOSTTY@ --launched-from=systemd
[Install]
WantedBy=graphical-session.target