Skip to content

Create wrapper script for wine64 symlink #211

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 23, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,12 @@ then
echo -e "\nexport PATH=\"\$PATH:$HOME/.winemonogame\"" >> ~/.profile
echo -e "\nexport PATH=\"\$PATH:$HOME/.winemonogame\"" >> ~/.zprofile

WINEPATH=$(which $WINEEXECUTABLE)
ln -s "$WINEPATH" "$HOME/.winemonogame/wine64"
# create a wine wrapper script to work around oddities with symlinked wine64
echo -e "#\!/bin/bash\nwine \"\$@\"" > "$HOME/.winemonogame/wine_wrapper.sh"
chmod +x "$HOME/.winemonogame/wine_wrapper.sh"

# symlink wine64 to our wrapper script
ln -s "$HOME/.winemonogame/wine_wrapper.sh" "$HOME/.winemonogame/wine64"
fi

# cleanup
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,12 @@ then
echo -e "\nexport PATH=\"\$PATH:$HOME/.winemonogame\"" >> ~/.profile
echo -e "\nexport PATH=\"\$PATH:$HOME/.winemonogame\"" >> ~/.zprofile

WINEPATH=$(which $WINEEXECUTABLE)
ln -s "$WINEPATH" "$HOME/.winemonogame/wine64"
# create a wine wrapper script to work around oddities with symlinked wine64
echo -e "#\!/bin/bash\nwine \"\$@\"" > "$HOME/.winemonogame/wine_wrapper.sh"
chmod +x "$HOME/.winemonogame/wine_wrapper.sh"

# symlink wine64 to our wrapper script
ln -s "$HOME/.winemonogame/wine_wrapper.sh" "$HOME/.winemonogame/wine64"
fi

# cleanup
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,12 @@ then
echo -e "\nexport PATH=\"\$PATH:$HOME/.winemonogame\"" >> ~/.profile
echo -e "\nexport PATH=\"\$PATH:$HOME/.winemonogame\"" >> ~/.zprofile

WINEPATH=$(which $WINEEXECUTABLE)
ln -s "$WINEPATH" "$HOME/.winemonogame/wine64"
# create a wine wrapper script to work around oddities with symlinked wine64
echo -e "#\!/bin/bash\nwine \"\$@\"" > "$HOME/.winemonogame/wine_wrapper.sh"
chmod +x "$HOME/.winemonogame/wine_wrapper.sh"

# symlink wine64 to our wrapper script
ln -s "$HOME/.winemonogame/wine_wrapper.sh" "$HOME/.winemonogame/wine64"
fi

# cleanup
Expand Down