Re-integrate Edge policies into Chromium by removing apps-as-homepage.json

This commit is contained in:
Aminda Suomalainen 2024-05-16 18:35:48 +03:00
parent 859f2a9f1d
commit 006ed65597
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q
14 changed files with 4 additions and 74 deletions

View File

@ -40,13 +40,9 @@ ln -sfv /etc/opt/chromium /etc/opt/chrome
rm -fv /etc/etc/opt/chrome/chrome rm -fv /etc/etc/opt/chrome/chrome
# Microsoft Edge # Microsoft Edge
# NOTE! It breaks chrome:// URLs so the recommended policy apps as new tab page # I used to have a separate policy for it so remember to remove this manually
# won't work and wants to open Firefox instead, so I am managing the recommended # if it exists!
# policy separately ln -sfv /etc/opt/chromium /etc/opt/edge
#ln -sfv /etc/opt/chromium /etc/opt/edge rm -fv /etc/opt/edge/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"
set +x set +x

View File

@ -8,7 +8,6 @@
<!-- START doctoc generated TOC please keep comment here to allow auto update --> <!-- START doctoc generated TOC please keep comment here to allow auto update -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --> <!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
- [`apps-as-homepage.json`](#apps-as-homepagejson)
- [`brave-search.json`](#brave-searchjson) - [`brave-search.json`](#brave-searchjson)
- [`disable-default-browser-check.json`](#disable-default-browser-checkjson) - [`disable-default-browser-check.json`](#disable-default-browser-checkjson)
- [`duckduckgo.json`](#duckduckgojson) - [`duckduckgo.json`](#duckduckgojson)
@ -24,12 +23,6 @@
<!-- prettier-ignore-end --> <!-- prettier-ignore-end -->
<!-- editorconfig-checker-enable --> <!-- editorconfig-checker-enable -->
## `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` ## `brave-search.json`
Sets and displays recommendation on the use of search.brave.com as a search engine by default. Sets and displays recommendation on the use of search.brave.com as a search engine by default.

View File

@ -1,4 +0,0 @@
{
"HomepageIsNewTabPage": true,
"NewTabPageLocation": "chrome://apps"
}

View File

@ -1 +0,0 @@
managed

View File

@ -1 +0,0 @@
../../chromium/policies/managed

View File

@ -1,6 +0,0 @@
brave-search.json
disable-default-browser-check.json
duckduckgo.json
ecosia.json
enable-home.json
no-bookmarks-bar.json

View File

@ -1,37 +0,0 @@
# Microsoft Edge recommended policies
<!-- editorconfig-checker-disable -->
<!-- prettier-ignore-start -->
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
- [Fedora?](#fedora)
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
<!-- prettier-ignore-end -->
<!-- editorconfig-checker-enable -->
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}
```

View File

@ -1,4 +0,0 @@
{
"HomepageIsNewTabPage": true,
"NewTabPageLocation": "edge://apps"
}

View File

@ -1 +0,0 @@
../../../chromium/policies/recommended/brave-search.json

View File

@ -1 +0,0 @@
../../../chromium/policies/recommended/disable-default-browser-check.json

View File

@ -1 +0,0 @@
../../../chromium/policies/recommended/duckduckgo.json

View File

@ -1 +0,0 @@
../../../chromium/policies/recommended/ecosia.json

View File

@ -1 +0,0 @@
../../../chromium/policies/recommended/enable-home.json

View File

@ -1 +0,0 @@
../../../chromium/policies/recommended/no-bookmarks-bar.json