summaryrefslogtreecommitdiff
path: root/dist
diff options
context:
space:
mode:
authorMitchell Hashimoto <m@mitchellh.com>2025-06-24 18:14:24 -0400
committerGitHub <noreply@github.com>2025-06-24 18:14:24 -0400
commit977cd530c7bb9551de93900170bdaec4601b1b5b (patch)
tree51dd8d7feeaf5caecb629d3378312d577fe520df /dist
parent4c3db76733d34d3e3357457f3c6689541f841a7c (diff)
parentc1d04a61759d04f6adcff22bad3455d095b96c7c (diff)
linux: add dbus and systemd activation services (#7433)
Diffstat (limited to 'dist')
-rw-r--r--dist/linux/app.desktop7
-rw-r--r--dist/linux/dbus.service4
-rw-r--r--dist/linux/systemd.service7
3 files changed, 16 insertions, 2 deletions
diff --git a/dist/linux/app.desktop b/dist/linux/app.desktop
index 6e464ea87..4475617f9 100644
--- a/dist/linux/app.desktop
+++ b/dist/linux/app.desktop
@@ -1,8 +1,10 @@
[Desktop Entry]
+Version=1.0
Name=Ghostty
Type=Application
Comment=A terminal emulator
-Exec=ghostty
+TryExec=ghostty
+Exec=ghostty --launched-from=desktop
Icon=com.mitchellh.ghostty
Categories=System;TerminalEmulator;
Keywords=terminal;tty;pty;
@@ -16,7 +18,8 @@ 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
+Exec=ghostty --launched-from=desktop
diff --git a/dist/linux/dbus.service b/dist/linux/dbus.service
new file mode 100644
index 000000000..67a80d5dd
--- /dev/null
+++ b/dist/linux/dbus.service
@@ -0,0 +1,4 @@
+[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
new file mode 100644
index 000000000..9699dccdf
--- /dev/null
+++ b/dist/linux/systemd.service
@@ -0,0 +1,7 @@
+[Unit]
+Description=Ghostty
+
+[Service]
+Type=dbus
+BusName=com.mitchellh.ghostty
+ExecStart=ghostty --launched-from=systemd