mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-13 15:26:09 +03:00
added right click action for plasma
This commit is contained in:
@ -573,6 +573,13 @@ pub fn build(b: *std.Build) !void {
|
||||
b.installFile("dist/linux/app.desktop", "share/applications/com.mitchellh.ghostty.desktop");
|
||||
}
|
||||
|
||||
// Right click menu action in case of Plasma desktop
|
||||
if (env.get("DESKTOP_SESSION")) |desktop| {
|
||||
if (std.mem.eql(u8, desktop, "plasma")) {
|
||||
b.installFile("dist/linux/ghostty_dolphin.desktop", "share/kio/servicemenus/ghostty_dolphin.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
Normal file
11
dist/linux/ghostty_dolphin.desktop
vendored
Normal 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=cd %F && ghostty
|
||||
|
Reference in New Issue
Block a user