diff options
author | Martin Stransky <stransky@redhat.com> | 2020-09-23 09:49:57 +0200 |
---|---|---|
committer | Martin Stransky <stransky@redhat.com> | 2020-09-23 09:49:57 +0200 |
commit | c8a56b17a2cb928e86bf4faf74938a64b25b302e (patch) | |
tree | 24cd0005cf411c6dacc7303af63fc9ec2b358848 /firefox.sh.in | |
parent | Re-enable builds for armv7hl and aarch64 architectures (diff) | |
download | librewolf-fedora-ff-c8a56b17a2cb928e86bf4faf74938a64b25b302e.tar.gz librewolf-fedora-ff-c8a56b17a2cb928e86bf4faf74938a64b25b302e.tar.bz2 librewolf-fedora-ff-c8a56b17a2cb928e86bf4faf74938a64b25b302e.zip |
Added fix for rhbz#1731371
Diffstat (limited to 'firefox.sh.in')
-rw-r--r-- | firefox.sh.in | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/firefox.sh.in b/firefox.sh.in index 75148e5..63c04cc 100644 --- a/firefox.sh.in +++ b/firefox.sh.in @@ -174,11 +174,19 @@ MOZILLA_DOWN=0 if ! [ $MOZ_DISABLE_LANGPACKS ] || [ $MOZ_DISABLE_LANGPACKS -eq 0 ]; then if [ -x $MOZ_DIST_BIN/$MOZ_FIREFOX_FILE ]; then # Is firefox running? - /__PREFIX__/bin/pidof firefox > /dev/null 2>&1 + /__PREFIX__/bin/pidof $MOZ_PROGRAM > /dev/null 2>&1 MOZILLA_DOWN=$? fi fi +# When Firefox is not running, restore SELinux labels for profile files +# (rhbz#1731371) +if [ $MOZILLA_DOWN -ne 0 ]; then + if [ `getenforce` != "Disabled" ]; then + restorecon -vr ~/.mozilla/firefox/* & + fi +fi + # Modify language pack configuration only when firefox is not running # and language packs are not disabled if [ $MOZILLA_DOWN -ne 0 ]; then |