From d275256e3217ce27965bef30600175c68ff954d0 Mon Sep 17 00:00:00 2001 From: Thorsten Ball Date: Sat, 9 Sep 2023 07:04:22 +0200 Subject: [PATCH] gtk: add new-window action to .desktop files Inspired by #413. This modifies the .desktop files so that it's possible to right-click on the Ghostty icon in a dock and get the "New window" action. Apparently this is how you implement that in GTK applications. In order for us to also get "New tab", we'd have to implement a CLI flag, I think. --- dist/linux/app-flatpak.desktop | 5 +++++ dist/linux/app.desktop | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/dist/linux/app-flatpak.desktop b/dist/linux/app-flatpak.desktop index 99a005750..a3748b568 100644 --- a/dist/linux/app-flatpak.desktop +++ b/dist/linux/app-flatpak.desktop @@ -7,3 +7,8 @@ Icon=com.mitchellh.ghostty Keywords=terminal;tty;pty; StartupNotify=true Terminal=false +Actions=new-window + +[Desktop Action new-window] +Actions=new-window +Exec=/app/bin/ghostty diff --git a/dist/linux/app.desktop b/dist/linux/app.desktop index a06032d78..043ab1aeb 100644 --- a/dist/linux/app.desktop +++ b/dist/linux/app.desktop @@ -7,3 +7,8 @@ Icon=com.mitchellh.ghostty Keywords=terminal;tty;pty; StartupNotify=true Terminal=false +Actions=new-window + +[Desktop Action new-window] +Actions=new-window +Exec=/usr/bin/ghostty