|
|
@@ -18,11 +18,21 @@ PDF_VIEWER=/usr/share/applications/org.pwmt.zathura-pdf-mupdf.desktop |
|
|
|
|
|
|
|
FILE_MANAGER=/usr/share/applications/thunar.desktop |
|
|
|
TEXT_EDITOR=/usr/share/applications/leafpad.desktop |
|
|
|
ARCHIVER=/usr/share/applications/xarchiver.desktop |
|
|
|
|
|
|
|
MSTEAMS=${HOME}/.local/share/applications/teams.desktop |
|
|
|
TS3=${HOME}/.local/share/applications/teamspeak.desktop |
|
|
|
ZOOM=${HOME}/.local/share/applications/zoom.desktop |
|
|
|
|
|
|
|
# Set default archiver (set this first, this shall be fallback) |
|
|
|
ARCHIVER_NAME=$(awk -F= '/^Name=/ {print $2;exit;}' ${ARCHIVER}) |
|
|
|
IFS=';' read -ra types <<< $(awk -F= '/MimeType/ {print $2}' ${ARCHIVER}) |
|
|
|
for type in ${types[@]}; do |
|
|
|
echo "Setting ${type} to ${ARCHIVER_NAME}" |
|
|
|
xdg-mime default $(basename ${ARCHIVER}) ${type} |
|
|
|
done |
|
|
|
|
|
|
|
|
|
|
|
# Set default browser |
|
|
|
BROWSER_NAME=$(awk -F= '/^Name=/ {print $2;exit;}' ${BROWSER}) |
|
|
|
IFS=';' read -ra types <<< $(awk -F= '/MimeType/ {print $2}' ${BROWSER}) |
|
|
|