diff options
author | NP-Hardass <np.hardass@gmail.com> | 2017-04-02 21:34:18 -0400 |
---|---|---|
committer | NP-Hardass <np.hardass@gmail.com> | 2017-04-02 21:34:18 -0400 |
commit | 760c05ff249f9599fe7aa92f68ceba2083e243fc (patch) | |
tree | e09db0a0e06a95f79bfcd83a086f79caef4c0b61 | |
parent | wine.eselect: drop eval and change behavior in remove_symlinks (diff) | |
download | eselect-wine-760c05ff249f9599fe7aa92f68ceba2083e243fc.tar.gz eselect-wine-760c05ff249f9599fe7aa92f68ceba2083e243fc.tar.bz2 eselect-wine-760c05ff249f9599fe7aa92f68ceba2083e243fc.zip |
wine.eselect: Add support for desktop filesv0.99_rc8
-rw-r--r-- | wine.eselect | 11 |
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 |