summaryrefslogtreecommitdiff
path: root/dist/linux
diff options
context:
space:
mode:
authorMitchell Hashimoto <m@mitchellh.com>2025-06-24 22:06:33 -0400
committerMitchell Hashimoto <m@mitchellh.com>2025-06-24 22:07:09 -0400
commitf941a2185ee796d3fe115e6fe87866d963578ad7 (patch)
tree04ca9e2041dad3f4665630fd89fa92d1e4fdbe41 /dist/linux
parent00aad8662544fe12c80cee19f626d84480849547 (diff)
Revert "linux: add dbus and systemd activation services (#7433)"
Reverts two commits: 977cd530c7bb9551de93900170bdaec4601b1b5b 820b7e432b57cd08c49d2e76cce4cb78016f0418 These break build from source on Linux for two reasons: 1.) The systemd user service needs to be installed in the `share` prefix, not the `lib` prefix. This lets it get picked up in `~/.local` but is also correct for just standard FHS paths. 2.) The `ghostty` path in the systemd user service needs to be absolute. We should interpolate in the build install prefix to form an absolute path.
Diffstat (limited to 'dist/linux')
-rw-r--r--dist/linux/app.desktop7
-rw-r--r--dist/linux/dbus.service4
-rw-r--r--dist/linux/systemd.service7
3 files changed, 2 insertions, 16 deletions
diff --git a/dist/linux/app.desktop b/dist/linux/app.desktop
index 4475617f9..6e464ea87 100644
--- a/dist/linux/app.desktop
+++ b/dist/linux/app.desktop
@@ -1,10 +1,8 @@
[Desktop Entry]
-Version=1.0
Name=Ghostty
Type=Application
Comment=A terminal emulator
-TryExec=ghostty
-Exec=ghostty --launched-from=desktop
+Exec=ghostty
Icon=com.mitchellh.ghostty
Categories=System;TerminalEmulator;
Keywords=terminal;tty;pty;
@@ -18,8 +16,7 @@ X-TerminalArgTitle=--title=
X-TerminalArgAppId=--class=
X-TerminalArgDir=--working-directory=
X-TerminalArgHold=--wait-after-command
-DBusActivatable=true
[Desktop Action new-window]
Name=New Window
-Exec=ghostty --launched-from=desktop
+Exec=ghostty
diff --git a/dist/linux/dbus.service b/dist/linux/dbus.service
deleted file mode 100644
index 67a80d5dd..000000000
--- a/dist/linux/dbus.service
+++ /dev/null
@@ -1,4 +0,0 @@
-[D-BUS Service]
-Name=com.mitchellh.ghostty
-SystemdService=com.mitchellh.ghostty.service
-Exec=ghostty --launched-from=dbus
diff --git a/dist/linux/systemd.service b/dist/linux/systemd.service
deleted file mode 100644
index 9699dccdf..000000000
--- a/dist/linux/systemd.service
+++ /dev/null
@@ -1,7 +0,0 @@
-[Unit]
-Description=Ghostty
-
-[Service]
-Type=dbus
-BusName=com.mitchellh.ghostty
-ExecStart=ghostty --launched-from=systemd