fixup librewolf mobile

This commit is contained in:
Henry Hiles 2026-11-17 14:48:45 -05:00
commit ba277234a8
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs

View file

@ -16,12 +16,11 @@ let
cp -r ${src}/src/themes $out/ cp -r ${src}/src/themes $out/
''; '';
# It logs into <profile>/chrome, which is a read-only theme from the store here, and failing to
# open the log stops it from loading at all. Log into the profile itself instead.
autoconfig = pkgs.runCommand "mobile-config-autoconfig.js" { } '' autoconfig = pkgs.runCommand "mobile-config-autoconfig.js" { } ''
substitute ${src}/src/mobile-config-autoconfig.js $out \ substitute ${src}/src/mobile-config-autoconfig.js autoconfig.js \
--replace-fail "/usr/lib/mobile-config-firefox" "${configDir}" \ --replace-fail "/usr/lib/mobile-config-firefox" "${configDir}" \
--replace-fail 'var logFile = g_chromeDir.clone();' 'var logFile = Services.dirsvc.get("ProfD", Ci.nsIFile);' --replace-fail 'var logFile = g_chromeDir.clone();' 'var logFile = Services.dirsvc.get("ProfD", Ci.nsIFile);'
{ echo '(function () {'; cat autoconfig.js; echo '})();'; } > $out
''; '';
# The wrapper sets up autoconfig itself # The wrapper sets up autoconfig itself