aboutsummarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorHo Kim2024-08-14 05:42:01 +0000
committerHo Kim2024-08-14 05:42:01 +0000
commit8be842100ded22c27616ab197152251911484077 (patch)
tree8bedb843467a0f4f5f209d1aea28d5b5ed2b409b
parent3dd07dd0df10411ec3bdbe3d65e6b44e18b29a63 (diff)
downloadaur-8be842100ded22c27616ab197152251911484077.tar.gz
fix: link wine home directory to the wild
-rwxr-xr-xinstall.sh4
-rwxr-xr-xkakaotalk14
2 files changed, 13 insertions, 5 deletions
diff --git a/install.sh b/install.sh
index d1c902c85cf1..72dba2e20337 100755
--- a/install.sh
+++ b/install.sh
@@ -1,5 +1,5 @@
#!/bin/bash
-# Copyright (c) 2023 Ho Kim (ho.kim@ulagbulag.io). All rights reserved.
+# Copyright (c) 2023-2024 Ho Kim (ho.kim@ulagbulag.io). All rights reserved.
# Use of this source code is governed by The Unlicense license that can be
# found in the LICENSE file.
@@ -30,4 +30,4 @@ function _install_local() {
}
# Execute main function
-_install_local "$@" || exit 1
+_install_local "$@"
diff --git a/kakaotalk b/kakaotalk
index 78b0c4609000..7ab12a27fea9 100755
--- a/kakaotalk
+++ b/kakaotalk
@@ -1,5 +1,5 @@
#!/bin/bash
-# Copyright (c) 2023 Ho Kim (ho.kim@ulagbulag.io). All rights reserved.
+# Copyright (c) 2023-2024 Ho Kim (ho.kim@ulagbulag.io). All rights reserved.
# Use of this source code is governed by The Unlicense license that can be
# found in the LICENSE file.
@@ -42,12 +42,20 @@ function _install_wine() {
# Restore home directory
export HOME="${HOME_ORIGIN}"
+ # Link the wine home directory to the wild
+ HOME_WINE="$(
+ find "${WINEPREFIX}/drive_c/users" \
+ -mindepth 1 -maxdepth 1 -type d -not -name 'Public'
+ )"
+ mv "${HOME_WINE}" "${HOME_WINE}-bak" || true
+ ln -sf "${HOME}" "${HOME_WINE}"
+
# Create a desktop shortcut
if [ -d "${HOME}/Desktop/" ]; then
ICON_SRC='/usr/share/applications/kakaotalk.desktop'
ICON_DST="${HOME}/Desktop/kakaotalk.desktop"
- if [ ! -f "${ICON_DST}" ]; then
+ if [ -f "${ICON_SRC}" ] && [ ! -f "${ICON_DST}" ]; then
mkdir -p "$(dirname "${ICON_DST}")"
cp "${ICON_SRC}" "${ICON_DST}"
chmod u+x "${ICON_DST}"
@@ -94,4 +102,4 @@ function main() {
}
# Execute main function
-main "$@" || exit 1
+main "$@"