linux: fix installation path of nautilus-python extension (#5469)

Fixes #5468
pull/5550/head
Mitchell Hashimoto 2025-02-03 07:19:01 -08:00 committed by GitHub
commit 61fd41116a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 2 deletions

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