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
This commit is contained in:
Andrej Daskalov
2024-11-29 11:14:17 +01:00
parent 4be06d1c11
commit 074312c5ef
2 changed files with 2 additions and 6 deletions

View File

@ -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.

0
dist/linux/ghostty_dolphin.desktop vendored Normal file → Executable file
View File