mirror of
https://gitee.com/gfdgd-xi/deep-wine-runner
synced 2025-01-13 10:08:28 +08:00
24 lines
527 B
Bash
24 lines
527 B
Bash
$SHELL_DIR/spark_kill.sh ths block
|
|
|
|
debug_log "Start run $1"
|
|
#get file full path
|
|
path="$1"
|
|
path=$(echo ${path/c:/${WINEPREFIX}/drive_c})
|
|
path=$(echo ${path//\\/\/})
|
|
|
|
#kill bloack process
|
|
name="${path##*/}"
|
|
$SHELL_DIR/spark_kill.sh "$name" block
|
|
|
|
#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
|
|
|
|
CallProcess "$@"
|