Skip to content

Commit

Permalink
allow setting Browsers as default opener in Linux in install.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
liias committed Sep 19, 2024
1 parent f25be7e commit 6f9f285
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions extra/linux/dist/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,9 @@ if [[ $* != *--skip-desktop-database* ]]; then
# The update-desktop-database program is a tool to build a cache database of the MIME types handled by desktop files.
# Refresh desktop database
update-desktop-database "$TARGET_DESKTOP_DIR_PATH"

# Sets Browsers as default application for https and http mimetypes
xdg-mime default "software.Browsers.desktop" https http || echo "Could not make Browsers as default web link opener"
fi

echo "Browsers has been installed. Enjoy!"
Expand Down

0 comments on commit 6f9f285

Please sign in to comment.