Commit d0c83654 authored by Lei Zhang's avatar Lei Zhang Committed by Alexandre Julliard

wineshelllink: Fall back to $HOME if $HOME/Desktop does not exist.

parent ec16e632
......@@ -220,7 +220,13 @@ if [ $mode = "menu" ] ; then
desktop_entry > "$xdg_data_dir/applications/wine/$link.desktop"
write_menu_file "wine$linkpath" "wine$linkpath/$linkname.desktop"
else
desktop_entry > "$HOME/Desktop/$linkname.desktop"
if [ -d "$HOME/Desktop" ]
then
desktop_target="$HOME/Desktop/$linkname.desktop"
else
desktop_target="$HOME/$linkname.desktop"
fi
desktop_entry > "$desktop_target"
fi
exit 0
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment