Created
May 24, 2024 08:43
-
-
Save naranyala/1d385a5fb498c56540798e872eb1c62b to your computer and use it in GitHub Desktop.
install ungoogled-chromium in linux system
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
### | |
# [0] download first | |
# https://ungoogled-software.github.io/ungoogled-chromium-binaries/ | |
# [1] make it executable | |
# [2] move to system | |
# [3] set "https://search.brave.com/search?q=%s" as default search engine | |
### | |
# Define variables | |
EXECUTABLE_PATH="/usr/local/bin/ungoogled-chromium" | |
DESKTOP_ENTRY_PATH="/usr/share/applications/ungoogled-chromium.desktop" | |
ICON_PATH="/usr/share/icons/hicolor/48x48/apps/chromium.png" # Adjust the icon path as needed | |
# Create the desktop entry | |
sudo tee "$DESKTOP_ENTRY_PATH" > /dev/null <<EOL | |
[Desktop Entry] | |
Version=1.0 | |
Name=Ungoogled Chromium | |
Comment=Browse the web | |
Exec=$EXECUTABLE_PATH %U | |
Terminal=false | |
X-MultipleArgs=false | |
Type=Application | |
Icon=$ICON_PATH | |
Categories=Network;WebBrowser; | |
MimeType=text/html;text/xml;application/xhtml+xml;x-scheme-handler/http;x-scheme-handler/https; | |
StartupNotify=true | |
EOL | |
# Update desktop environment settings | |
xdg-settings set default-web-browser ungoogled-chromium.desktop | |
echo "Shortcut for Ungoogled Chromium created successfully." | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment