mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-16 00:36:07 +03:00
Merge pull request #2849 from andrejdaskalov/dolphin-action
Add ghostty right-click menu item for Plasma users
This commit is contained in:
@ -573,6 +573,9 @@ pub fn build(b: *std.Build) !void {
|
|||||||
b.installFile("dist/linux/app.desktop", "share/applications/com.mitchellh.ghostty.desktop");
|
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
|
// Various icons that our application can use, including the icon
|
||||||
// that will be used for the desktop.
|
// that will be used for the desktop.
|
||||||
b.installFile("images/icons/icon_16x16.png", "share/icons/hicolor/16x16/apps/com.mitchellh.ghostty.png");
|
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
11
dist/linux/ghostty_dolphin.desktop
vendored
Executable 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
|
||||||
|
|
Reference in New Issue
Block a user