aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreroen <eroen@occam.eroen.eu>2015-01-22 21:25:01 +0100
committereroen <eroen@occam.eroen.eu>2015-01-22 21:25:01 +0100
commitccf918499039ef391081d3257f892bd4c4f60c10 (patch)
treebd42384e0695d6040375921926b735d77cc3ce31 /wine.eselect
parentImprove sorting (diff)
downloadeselect-wine-ccf918499039ef391081d3257f892bd4c4f60c10.tar.gz
eselect-wine-ccf918499039ef391081d3257f892bd4c4f60c10.tar.bz2
eselect-wine-ccf918499039ef391081d3257f892bd4c4f60c10.zip
update mime db
Diffstat (limited to 'wine.eselect')
-rw-r--r--wine.eselect13
1 files changed, 13 insertions, 0 deletions
diff --git a/wine.eselect b/wine.eselect
index e4a09c8..4898838 100644
--- a/wine.eselect
+++ b/wine.eselect
@@ -43,6 +43,14 @@ find_targets() {
done | sort_versions
}
+# lifted from fdo-mime.eclass
+desktop_database_update() {
+ if [[ -x "${EPREFIX}/usr/bin/update-desktop-database" ]]; then
+ echo "Updating desktop mime database ..."
+ "${EPREFIX}/usr/bin/update-desktop-database" -q "${EROOT}usr/share/applications"
+ fi
+}
+
# remove wine symlinks
remove_symlinks() {
for exe in "${EXECUTABLES[@]}"; do
@@ -62,10 +70,13 @@ remove_symlinks() {
fi
done
+ desktop_database_update
+
return 0
}
# set wine symlinks
+# Usage: set_symlinks <name> | <number>
set_symlinks() {
local target=$1
@@ -101,6 +112,8 @@ set_symlinks() {
die -q "Target \"$1\" doesn't appear to be valid!"
fi
+ desktop_database_update
+
return 0
}