Merge pull request #2849 from andrejdaskalov/dolphin-action

Add ghostty right-click menu item for Plasma users
This commit is contained in:
Mitchell Hashimoto
2024-12-01 12:15:47 -08:00
committed by GitHub
2 changed files with 14 additions and 0 deletions

View File

@ -573,6 +573,9 @@ pub fn build(b: *std.Build) !void {
b.installFile("dist/linux/app.desktop", "share/applications/com.mitchellh.ghostty.desktop");
}
// Right click menu action for Plasma desktop
b.installFile("dist/linux/ghostty_dolphin.desktop", "share/kio/servicemenus/com.mitchellh.ghostty.desktop");
// Various icons that our application can use, including the icon
// that will be used for the desktop.
b.installFile("images/icons/icon_16x16.png", "share/icons/hicolor/16x16/apps/com.mitchellh.ghostty.png");

11
dist/linux/ghostty_dolphin.desktop vendored Executable file
View File

@ -0,0 +1,11 @@
[Desktop Entry]
Type=Service
ServiceTypes=KonqPopupMenu/Plugin
MimeType=inode/directory
Actions=RunGhosttyDir
[Desktop Action RunGhosttyDir]
Name=Open Ghostty Here
Icon=com.mitchellh.ghostty
Exec=ghostty --working-directory=%F --gtk-single-instance=false