summaryrefslogtreecommitdiff
path: root/kakaotalk
diff options
context:
space:
mode:
Diffstat (limited to 'kakaotalk')
-rwxr-xr-xkakaotalk8
1 files changed, 8 insertions, 0 deletions
diff --git a/kakaotalk b/kakaotalk
index 062210e..e01f76c 100755
--- a/kakaotalk
+++ b/kakaotalk
@@ -74,6 +74,14 @@ function _install_wine() {
# fi
fi
fi
+
+ # Set default system pref and user pref
+ systempath="$WINEPREFIX/drive_c/users/si/AppData/Local/Kakao/KakaoTalk"
+ userdir=$(find "$systempath/users" -mindepth 1 -maxdepth 1 -type d | head -n 1)
+ cp pref.ini "$systempath/"
+ [ -n "$userdir" ] &&
+ cp user_pref.ini "$userdir/" &&
+ printf "download_path = Z:\\home\\%s\\Downloads\n" "$USER" >>"$userdir/user_pref.ini"
}
###########################################################