diff --git a/etc/init-browser-policies.bash b/etc/init-browser-policies.bash index 5e8d28fc..14ba36dd 100755 --- a/etc/init-browser-policies.bash +++ b/etc/init-browser-policies.bash @@ -40,13 +40,9 @@ ln -sfv /etc/opt/chromium /etc/opt/chrome rm -fv /etc/etc/opt/chrome/chrome # Microsoft Edge -# NOTE! It breaks chrome:// URLs so the recommended policy apps as new tab page -# won't work and wants to open Firefox instead, so I am managing the recommended -# policy separately -#ln -sfv /etc/opt/chromium /etc/opt/edge -mkdir -vp /etc/opt/edge/policies/recommended -ln -sfv /etc/opt/chromium/policies/managed /etc/opt/edge/policies/managed -rm -fv /etc/opt/edge/policies/managed/managed -printf "WARNING! Edge recommended profiles are managed separately.\n" +# I used to have a separate policy for it so remember to remove this manually +# if it exists! +ln -sfv /etc/opt/chromium /etc/opt/edge +rm -fv /etc/opt/edge/edge set +x diff --git a/etc/opt/chromium/policies/recommended/README.md b/etc/opt/chromium/policies/recommended/README.md index 9bcfe87b..a364e332 100644 --- a/etc/opt/chromium/policies/recommended/README.md +++ b/etc/opt/chromium/policies/recommended/README.md @@ -8,7 +8,6 @@ -- [`apps-as-homepage.json`](#apps-as-homepagejson) - [`brave-search.json`](#brave-searchjson) - [`disable-default-browser-check.json`](#disable-default-browser-checkjson) - [`duckduckgo.json`](#duckduckgojson) @@ -24,12 +23,6 @@ -## `apps-as-homepage.json` - -Sets the new tab page to `chrome://apps` and homepage as the new tab page. -However regardless of allowing the user to change homepage, the new tab page -won't change. - ## `brave-search.json` Sets and displays recommendation on the use of search.brave.com as a search engine by default. diff --git a/etc/opt/chromium/policies/recommended/apps-as-homepage.json b/etc/opt/chromium/policies/recommended/apps-as-homepage.json deleted file mode 100644 index 93ff9dba..00000000 --- a/etc/opt/chromium/policies/recommended/apps-as-homepage.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "HomepageIsNewTabPage": true, - "NewTabPageLocation": "chrome://apps" -} diff --git a/etc/opt/edge/policies/.gitignore b/etc/opt/edge/policies/.gitignore deleted file mode 100644 index 2d0f4af8..00000000 --- a/etc/opt/edge/policies/.gitignore +++ /dev/null @@ -1 +0,0 @@ -managed diff --git a/etc/opt/edge/policies/managed b/etc/opt/edge/policies/managed deleted file mode 120000 index 7be5ac1b..00000000 --- a/etc/opt/edge/policies/managed +++ /dev/null @@ -1 +0,0 @@ -../../chromium/policies/managed \ No newline at end of file diff --git a/etc/opt/edge/policies/recommended/.gitignore b/etc/opt/edge/policies/recommended/.gitignore deleted file mode 100644 index c291c8b7..00000000 --- a/etc/opt/edge/policies/recommended/.gitignore +++ /dev/null @@ -1,6 +0,0 @@ -brave-search.json -disable-default-browser-check.json -duckduckgo.json -ecosia.json -enable-home.json -no-bookmarks-bar.json diff --git a/etc/opt/edge/policies/recommended/README.md b/etc/opt/edge/policies/recommended/README.md deleted file mode 100644 index cdcbb5ac..00000000 --- a/etc/opt/edge/policies/recommended/README.md +++ /dev/null @@ -1,37 +0,0 @@ -# Microsoft Edge recommended policies - - - - - - - -- [Fedora?](#fedora) - - - - - - -Because apparently Microsoft is so allergic to Chrome, despite being based on -Chromium that they have to rewrite `chrome://` into `edge://` without handling -automatic redirect from the former, so my policy for apps as new page breaks -and suggests opening _Firefox Developer Edition_ for whatever reason. - -Thus separate recommended profiles for Microsoft Edge, just so this one is -fixed. - -**_Don't expect this directory to be updated, I will probably forget it -myself._** - -## Fedora? - -```bash -# Removes all three versions of Microsoft Edge from the system. -sudo dnf remove -y microsoft-edge-{stable,beta,dev} -# Remove all three Microsoft Edge repositories -rm -rv /etc/yum.repos.d/microsoft-edge{,-beta,-dev}.repo -# Removes the crontab entries to restore the above, if they didn't get removed -# already. -rm -v /etc/cron.daily/microsoft-edge{,-beta,-dev} -``` diff --git a/etc/opt/edge/policies/recommended/apps-as-homepage-edge.json b/etc/opt/edge/policies/recommended/apps-as-homepage-edge.json deleted file mode 100644 index 70b2425f..00000000 --- a/etc/opt/edge/policies/recommended/apps-as-homepage-edge.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "HomepageIsNewTabPage": true, - "NewTabPageLocation": "edge://apps" -} diff --git a/etc/opt/edge/policies/recommended/brave-search.json b/etc/opt/edge/policies/recommended/brave-search.json deleted file mode 120000 index 94f5f418..00000000 --- a/etc/opt/edge/policies/recommended/brave-search.json +++ /dev/null @@ -1 +0,0 @@ -../../../chromium/policies/recommended/brave-search.json \ No newline at end of file diff --git a/etc/opt/edge/policies/recommended/disable-default-browser-check.json b/etc/opt/edge/policies/recommended/disable-default-browser-check.json deleted file mode 120000 index 353b6ae5..00000000 --- a/etc/opt/edge/policies/recommended/disable-default-browser-check.json +++ /dev/null @@ -1 +0,0 @@ -../../../chromium/policies/recommended/disable-default-browser-check.json \ No newline at end of file diff --git a/etc/opt/edge/policies/recommended/duckduckgo.json b/etc/opt/edge/policies/recommended/duckduckgo.json deleted file mode 120000 index 0bad0a7b..00000000 --- a/etc/opt/edge/policies/recommended/duckduckgo.json +++ /dev/null @@ -1 +0,0 @@ -../../../chromium/policies/recommended/duckduckgo.json \ No newline at end of file diff --git a/etc/opt/edge/policies/recommended/ecosia.json b/etc/opt/edge/policies/recommended/ecosia.json deleted file mode 120000 index c93b4a68..00000000 --- a/etc/opt/edge/policies/recommended/ecosia.json +++ /dev/null @@ -1 +0,0 @@ -../../../chromium/policies/recommended/ecosia.json \ No newline at end of file diff --git a/etc/opt/edge/policies/recommended/enable-home.json b/etc/opt/edge/policies/recommended/enable-home.json deleted file mode 120000 index 74f848c5..00000000 --- a/etc/opt/edge/policies/recommended/enable-home.json +++ /dev/null @@ -1 +0,0 @@ -../../../chromium/policies/recommended/enable-home.json \ No newline at end of file diff --git a/etc/opt/edge/policies/recommended/no-bookmarks-bar.json b/etc/opt/edge/policies/recommended/no-bookmarks-bar.json deleted file mode 120000 index 481fd8f7..00000000 --- a/etc/opt/edge/policies/recommended/no-bookmarks-bar.json +++ /dev/null @@ -1 +0,0 @@ -../../../chromium/policies/recommended/no-bookmarks-bar.json \ No newline at end of file