POL_Install_CentralizedUserDirs
Informations
Créateur | Messages |
---|---|
petch
|
InformationCet installateur a été accepté par l'équipe. InformationsPlate-formes : Retours d'expérience0 0 DescriptionWhen Wine creates a prefix ("virtual drive"), it uses symlinks to make several user special paths (My Documents, My Pictures, etc.) point to closest equivalent Linux directory.
Code source#!/bin/bash # Date : (2013-10-31 21-16) # Last revision : (2013-10-31 21-26) # Author : petch # Only For : http://www.playonlinux.com # Just to be on the safe side [ -n "$WINEPREFIX" ] || POL_Debug_Fatal "POL_Function_CentralizedUserDirs: Variable WINEPREFIX not set!" local CENTRALIZED_USERDIRS="$(POL_Config_Read CENTRALIZED_USERDIRS)" if [ -z "$CENTRALIZED_USERDIRS" -o ! -d "$CENTRALIZED_USERDIRS" ]; then POL_SetupWindow_textbox "$(eval_gettext 'In what directory do you want to redirect user directories?')" "$TITLE" "$HOME/$APPLICATION_TITLE's user directories" CENTRALIZED_USERDIRS="$APP_ANSWER" mkdir -p "$CENTRALIZED_USERDIRS" || POL_Debug_Fatal "Could not create the directory" POL_Config_Write CENTRALIZED_USERDIRS "$CENTRALIZED_USERDIRS" fi find "$WINEPREFIX/drive_c/" -type l -exec sh -c 'echo "fixing {}"; rm "{}"; ln -s "'"$CENTRALIZED_USERDIRS"'" "{}"' \; |
Contributions
Filters:
ContribuerMembre | Messages |
Gosu | Mercredi 23 Juillet 2014 à 10:30 |
Gosu
|
This site allows content generated by members, and we promptly remove any content that infringes copyright according to our Terms of Service. To report copyright infringement, please send a notice to dmca-notice@playonlinux.com