3 # fixes the links that wine makes to our home folder under linux. that's a really bad
4 # practice that exposes all one's private files to the wine subsystem. dumb.
5 # instead, this replaces those links to a local folder with things that the wine apps
6 # can't pooch up too much. must be used within a wine user directory. for example,
7 # i fix my directory '~/.PlayOnLinux/wineprefix/Steam/drive_c/users/fred' with this.
9 if [ ! -L "My Documents" -o ! -L "Desktop" ]; then
10 echo "This script is meant to be used in a user directory under wine."
11 echo "It will re-hook the links for the desktop and documents to a local folder"
12 echo "called '~/wine_goods'"
16 \rm "Desktop" "My Documents" "My Pictures" "My Videos" "My Music"
18 if [ ! -d ~/wine_goods ]; then
21 if [ ! -d ~/wine_goods/desktop ]; then
22 mkdir ~/wine_goods/desktop
24 if [ ! -d ~/wine_goods/otherlinks ]; then
25 mkdir ~/wine_goods/otherlinks
28 ln -s ~/wine_goods "My Documents"
29 ln -s ~/wine_goods/desktop "Desktop"
30 ln -s ~/wine_goods/otherlinks "My Pictures"
31 ln -s ~/wine_goods/otherlinks "My Videos"
32 ln -s ~/wine_goods/otherlinks "My Music"