mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-22 11:19:22 +01:00
Re-integrate Edge policies into Chromium by removing apps-as-homepage.json
This commit is contained in:
parent
859f2a9f1d
commit
006ed65597
@ -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
|
||||
|
@ -8,7 +8,6 @@
|
||||
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
|
||||
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
|
||||
|
||||
- [`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 @@
|
||||
<!-- prettier-ignore-end -->
|
||||
<!-- 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`
|
||||
|
||||
Sets and displays recommendation on the use of search.brave.com as a search engine by default.
|
||||
|
@ -1,4 +0,0 @@
|
||||
{
|
||||
"HomepageIsNewTabPage": true,
|
||||
"NewTabPageLocation": "chrome://apps"
|
||||
}
|
1
etc/opt/edge/policies/.gitignore
vendored
1
etc/opt/edge/policies/.gitignore
vendored
@ -1 +0,0 @@
|
||||
managed
|
@ -1 +0,0 @@
|
||||
../../chromium/policies/managed
|
6
etc/opt/edge/policies/recommended/.gitignore
vendored
6
etc/opt/edge/policies/recommended/.gitignore
vendored
@ -1,6 +0,0 @@
|
||||
brave-search.json
|
||||
disable-default-browser-check.json
|
||||
duckduckgo.json
|
||||
ecosia.json
|
||||
enable-home.json
|
||||
no-bookmarks-bar.json
|
@ -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}
|
||||
```
|
@ -1,4 +0,0 @@
|
||||
{
|
||||
"HomepageIsNewTabPage": true,
|
||||
"NewTabPageLocation": "edge://apps"
|
||||
}
|
@ -1 +0,0 @@
|
||||
../../../chromium/policies/recommended/brave-search.json
|
@ -1 +0,0 @@
|
||||
../../../chromium/policies/recommended/disable-default-browser-check.json
|
@ -1 +0,0 @@
|
||||
../../../chromium/policies/recommended/duckduckgo.json
|
@ -1 +0,0 @@
|
||||
../../../chromium/policies/recommended/ecosia.json
|
@ -1 +0,0 @@
|
||||
../../../chromium/policies/recommended/enable-home.json
|
@ -1 +0,0 @@
|
||||
../../../chromium/policies/recommended/no-bookmarks-bar.json
|
Loading…
Reference in New Issue
Block a user