Skip to content

Instantly share code, notes, and snippets.

@shmerl
Last active February 27, 2025 03:00
Show Gist options
  • Save shmerl/a2867c5a675ed1795f03326b32b47fe7 to your computer and use it in GitHub Desktop.
Save shmerl/a2867c5a675ed1795f03326b32b47fe7 to your computer and use it in GitHub Desktop.
Environment setting for custom Wine usage
#!/bin/bash
# Helper script for wine_run.sh / winetricks_run.sh
# Sets environment. See wine_run.sh for details on
# configurable variables usage.
# $wine variable is a shortcut, setting /opt/$wine for $wine_path
# But explicitly set $wine_path takes priority.
if [[ "${wine+isset}" ]] && ! [[ "${wine_path+isset}" ]]; then
wine_path="/opt/${wine}"
fi
if [[ "${wine_path+isset}" ]]; then
export PATH=${wine_path}/bin:$PATH
fi
@shmerl
Copy link
Author

shmerl commented Feb 26, 2025

Updated to use latest Wine which got rid of wine64 binary. Also no more need for LD_LIBRARY_PATH.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment