From 074312c5effcfff8a68cc524e810a2bb0d1e719d Mon Sep 17 00:00:00 2001 From: Andrej Daskalov Date: Fri, 29 Nov 2024 11:14:17 +0100 Subject: [PATCH] updated permissions and build process Removed check for plasma in build.zig, it installs it anyways now Added executable permissions for ghostty_dolphin.desktop since Plasma requires them for context menu items --- build.zig | 8 ++------ dist/linux/ghostty_dolphin.desktop | 0 2 files changed, 2 insertions(+), 6 deletions(-) mode change 100644 => 100755 dist/linux/ghostty_dolphin.desktop diff --git a/build.zig b/build.zig index 0f58fa6c4..d233bff1f 100644 --- a/build.zig +++ b/build.zig @@ -573,12 +573,8 @@ 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/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. diff --git a/dist/linux/ghostty_dolphin.desktop b/dist/linux/ghostty_dolphin.desktop old mode 100644 new mode 100755