mirror of
https://gitee.com/gfdgd-xi/deep-wine-runner
synced 2025-01-13 10:08:28 +08:00
19 lines
445 B
Bash
19 lines
445 B
Bash
#!/bin/bash
|
|
|
|
#change current dir to excute path
|
|
path=$(dirname "$path")
|
|
cd "$path"
|
|
pwd
|
|
|
|
#Set default mime type
|
|
if [ -n "$MIME_TYPE" ]; then
|
|
xdg-mime default "$DEB_PACKAGE_NAME".desktop "$MIME_TYPE"
|
|
fi
|
|
|
|
debug_log_to_file "Starting process $* ..."
|
|
if [ -n "$2" ];then
|
|
env WINEPREFIX="$WINEPREFIX" $WINE_CMD "$1" "--url=$2" &
|
|
else
|
|
env WINEPREFIX="$WINEPREFIX" $WINE_CMD "$1" &
|
|
fi
|