linux: fix installation path of nautilus-python extension

Fixes #5468
This commit is contained in:
Jeffrey C. Ollie
2025-01-31 09:14:50 -06:00
parent c5508e7d19
commit 660d9dc671

View File

@ -209,10 +209,11 @@ pub fn init(b: *std.Build, cfg: *const Config) !GhosttyResources {
"share/kio/servicemenus/com.mitchellh.ghostty.desktop",
).step);
// Right click menu action for Nautilus
// Right click menu action for Nautilus. Note that this _must_ be named
// `ghostty.py`. Using the full app id causes problems (see #5468).
try steps.append(&b.addInstallFile(
b.path("dist/linux/ghostty_nautilus.py"),
"share/nautilus-python/extensions/com.mitchellh.ghostty.py",
"share/nautilus-python/extensions/ghostty.py",
).step);
// Various icons that our application can use, including the icon