Error when packaging Proton Drive for nixpkgs (macOS only)
I'm working on packaging Proton Drive for nixpkgs (specifically mac-drive as a binary installation, since nixpkgs has limited support for building Xcode projects). However, the application fails to launch with the error: "This application must be run from the /Applications folder. Please move it there and run it again."
This error originates from the check at https://github.com/ProtonDriveApps/mac-drive/blob/d4e01064943a52afbad8af23b4e2d36fad11f284/ProtonDrive-macOS/ProtonDriveMac/AppDelegate.swift#L59-L66.
In Nix, applications are built in the Nix store (typically /nix/store/...) and then symlinked to their final location, which prevents them from residing directly in /Applications. This hardcoded path requirement makes Proton Drive incompatible with Nix-based package management.
Could you clarify why this /Applications folder requirement exists? Is it related to security, auto-updates, or another technical constraint? If possible, would you consider making this check optional or removing it in a future update to support alternative package managers like Nix?
UserVoice is a place for raising ideas for ways that products can be improved, or ideas for new products. It is not for support. Thanks.