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
```
pull/7783/head
Mitchell Hashimoto 2025-07-01 16:03:58 -07:00 committed by GitHub
commit d88adb131c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

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