diff --git a/.m1k1o/firefox/Dockerfile b/.m1k1o/firefox/Dockerfile index 6421de92..7ddc798c 100644 --- a/.m1k1o/firefox/Dockerfile +++ b/.m1k1o/firefox/Dockerfile @@ -16,6 +16,10 @@ RUN set -eux; apt-get update; \ rm -f /tmp/firefox-setup.tar.bz2; \ ln -s /usr/lib/firefox/firefox /usr/bin/firefox; \ # + # create a profile directory + mkdir -p /home/neko/.mozilla/firefox/profile.default/extensions; \ + chown -R neko:neko /home/neko/.mozilla/firefox/profile.default; \ + # # clean up apt-get --purge autoremove -y xz-utils bzip2; \ apt-get clean -y; \ @@ -27,4 +31,5 @@ COPY supervisord.conf /etc/neko/supervisord/firefox.conf COPY neko.js /usr/lib/firefox/mozilla.cfg COPY autoconfig.js /usr/lib/firefox/defaults/pref/autoconfig.js COPY policies.json /usr/lib/firefox/distribution/policies.json +COPY --chown=neko profiles.ini /home/neko/.mozilla/firefox/profiles.ini COPY openbox.xml /etc/neko/openbox.xml diff --git a/.m1k1o/firefox/Dockerfile.arm b/.m1k1o/firefox/Dockerfile.arm index 3c4d6827..7e696d57 100644 --- a/.m1k1o/firefox/Dockerfile.arm +++ b/.m1k1o/firefox/Dockerfile.arm @@ -12,6 +12,10 @@ RUN set -eux; apt-get update; \ wget -O '/usr/lib/firefox-esr/distribution/extensions/uBlock0@raymondhill.net.xpi' https://addons.mozilla.org/firefox/downloads/latest/ublock-origin/latest.xpi; \ wget -O /usr/lib/firefox-esr/distribution/extensions/nordvpnproxy@nordvpn.com.xpi https://addons.mozilla.org/firefox/downloads/latest/nordvpn-proxy-extension/latest.xpi; \ # + # create a profile directory + mkdir -p /home/neko/.mozilla/firefox/profile.default/extensions; \ + chown -R neko:neko /home/neko/.mozilla/firefox/profile.default; \ + # # clean up apt-get clean -y; \ rm -rf /var/lib/apt/lists/* /var/cache/apt/* @@ -22,4 +26,5 @@ COPY supervisord.conf /etc/neko/supervisord/firefox.conf COPY neko.js /usr/lib/firefox-esr/mozilla.cfg COPY autoconfig.js /usr/lib/firefox-esr/defaults/pref/autoconfig.js COPY policies.json /usr/lib/firefox-esr/distribution/policies.json +COPY --chown=neko profiles.ini /home/neko/.mozilla/firefox/profiles.ini COPY openbox.xml /etc/neko/openbox.xml diff --git a/.m1k1o/firefox/profiles.ini b/.m1k1o/firefox/profiles.ini new file mode 100644 index 00000000..fc9f13ee --- /dev/null +++ b/.m1k1o/firefox/profiles.ini @@ -0,0 +1,8 @@ +[General] +StartWithLastProfile=1 + +[Profile0] +Name=default +IsRelative=1 +Path=profile.default +Default=1 diff --git a/.m1k1o/firefox/supervisord.conf b/.m1k1o/firefox/supervisord.conf index 3a0ac2c0..630cfded 100644 --- a/.m1k1o/firefox/supervisord.conf +++ b/.m1k1o/firefox/supervisord.conf @@ -1,6 +1,6 @@ [program:firefox] environment=HOME="/home/%(ENV_USER)s",USER="%(ENV_USER)s",DISPLAY="%(ENV_DISPLAY)s" -command=/usr/bin/firefox --display=%(ENV_DISPLAY)s -setDefaultBrowser -width 1280 -height 720 +command=/usr/bin/firefox --no-remote -P default --display=%(ENV_DISPLAY)s -setDefaultBrowser -width 1280 -height 720 autorestart=true priority=800 user=%(ENV_USER)s