aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--wine.eselect11
1 files changed, 9 insertions, 2 deletions
diff --git a/wine.eselect b/wine.eselect
index 1aa5f9d..ca00111 100644
--- a/wine.eselect
+++ b/wine.eselect
@@ -743,6 +743,10 @@ remove_symlinks() {
# Remove active if it exists
store_config "${CONFIG_DIR}/active" "${v}" ""
+ local desktop="${EPREFIX}/usr/share/applications/wine${v_arg#-}.desktop"
+ if [[ -e "${desktop}" ]]; then
+ rm "${desktop}" || die "Failed ro remove desktop file"
+ fi
desktop_database_update || die "Failed to update xorg desktop database"
}
@@ -821,9 +825,12 @@ set_symlinks() {
done
append_config "${CONFIG_DIR}/links/${v}" "man" "${links}"
- unset_dir_env
-
+ local desktop="${EPREFIX}/usr/share/applications/wine${v_arg#-}.desktop"
+ cp "${wine_app}/wine.desktop" "${desktop}" || die "Failed to copy desktop file"
+ sed -i "s:Exec=.*:Exec=wine${v_arg#-} start /unix %f:" ${desktop} || die "Failed to edit desktop file"
desktop_database_update || die "Failed to update xorg desktop database"
+
+ unset_dir_env
}
# set env vars for us to work with