Created
June 10, 2023 08:19
-
-
Save appleneko2001/1c91e10f73d897873c132d7ba87515d0 to your computer and use it in GitHub Desktop.
Used for double clicking .exe file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env xdg-open | |
| [Desktop Entry] | |
| Categories=System | |
| Exec=wine_loader.sh %f | |
| Icon=wine | |
| Name=Wine Windows Application Loader | |
| Terminal=false | |
| Type=Application |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| __EXEC_DIR="$( cd "$( dirname "$1" )" && pwd )" | |
| if [[ $1 == "/"* ]] ; | |
| then | |
| __EXEC_ENV="$1.env" | |
| else | |
| __EXEC_ENV="$( cd "$( dirname "$1" )" && pwd )/$1.env" | |
| fi | |
| # DIR="$( cd "$( dirname "$i" )" && pwd )" | |
| if [ -f "$__EXEC_ENV" ] | |
| then | |
| echo Loading $__EXEC_ENV | |
| export $(cat "$__EXEC_ENV" | xargs) | |
| fi | |
| /usr/bin/wine "$1" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment