-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Opening firefox on mac m1 fails to start with error #14
Comments
Same issue on M3
|
@masonedmison @rhoriguchi, do you both use nix-darwin's
When I removed all traces of Firefox (akin to:
Which led me to probe at the existence of the home.file."Library/Application Support/Firefox/profiles.ini" = let
profiles = lib.flip lib.mapAttrs' cfg.profiles (_: profile:
lib.nameValuePair "Profile${toString profile.id}" {
Name = profile.name;
Path = if pkgs.stdenv.isDarwin then "Profiles/${profile.path}" else profile.path;
IsRelative = 1;
Default = if profile.isDefault then 1 else 0;
}) // {
General = { StartWithLastProfile = 1; };
};
profile-ini = lib.generators.toINI { } profiles;
in
{
enable = true;
text = lib.mkForce profile-ini;
}; edit: the below code suggestion is incorrect - the issue seems to stem from the After which the application seems to launch correctly. In TLDR, does the following addition to
|
Ah! Related: nix-community/home-manager#5717 edit; yep! The above seems to be my cause also |
Yes, I'm using |
nix-community/home-manager#5717 (comment) Quick workaround is to set |
Ah, this is a really neat way compared to what I'd suggested above, thanks! |
Alright, so, on my system I can launch firefox like this: MOZ_LEGACY_PROFILES=1 ~/Applications/Home\ Manager\ Apps/Firefox.app/Contents/MacOS/firefox And it works as expected. However, I've tried to do it in a more streamlined way in my config: pkgs.firefox-beta-bin.overrideAttrs {
nativeBuildInputs = [ pkgs.makeBinaryWrapper ];
postInstall = ''
wrapProgram $out/Applications/Firefox.app/Contents/MacOS/firefox --set MOZ_LEGACY_PROFILES 1
'';
} This produces the correct wrapper, however... it automatically sends a |
For anyone encountering this issue, this fixes it for me: launchd.user.envVariables = {
MOZ_LEGACY_PROFILES = "1";
}; |
home.sessionVariables = {
MOZ_LEGACY_PROFILES = "1";
}; in |
Hi,
I'm on a Macbook Pro with a M1 processor. I'm using the overlay provided in this repo in my flake. When I open up the application (e.g. with
open ~/.nix-profile/Applications/Firefox.app/Contents/MacOS/firefox
), I get the following error:It looks like a ruby dependency is missing.
The text was updated successfully, but these errors were encountered: