-
-
Notifications
You must be signed in to change notification settings - Fork 403
Electron binary missing execute permissions (NixOS) #431
Copy link
Copy link
Open
Labels
bugSomething isn't workingSomething isn't workingformat: nixAffects Nix buildsAffects Nix buildspriority: highImportant, should be addressed soonImportant, should be addressed soontriage: investigatedIssue has been triaged and investigatedIssue has been triaged and investigated
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingformat: nixAffects Nix buildsAffects Nix buildspriority: highImportant, should be addressed soonImportant, should be addressed soontriage: investigatedIssue has been triaged and investigatedIssue has been triaged and investigated
Bug
The electron binary at
$out/lib/claude-desktop/electron/electronis copied from electron-unwrapped but lacks execute permissions (644 instead of 755).This causes claude-desktop to fail with exit code 126 (permission denied) on NixOS.
Location
In
nix/claude-desktop.nix, the installPhase does:But cp preserves permissions from the source, and electron-unwrapped's electron binary has 644 perms.
Fix
Add chmod after the cp:
Environment
permission denied: .../electron/electron(exit 126)Workaround
Overlay fix in user config: