mirror of
https://gitee.com/spark-store-project/spark-wine
synced 2026-06-22 14:13:52 +08:00
启动图标
This commit is contained in:
@@ -40,4 +40,5 @@ while true; do
|
|||||||
sleep 1
|
sleep 1
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
check_wmclass | zenity --progress --title="星火Windows应用兼容助手" --text="正在为您启动以下应用:$WINE_APP_NAME" --pulsate --width=400 --auto-close --no-cancel
|
|
||||||
|
check_wmclass | zenity --progress --title="星火Windows应用兼容助手" --text="正在为您启动以下应用:$WINE_APP_NAME" --pulsate --width=400 --auto-close --no-cancel --timeout=10
|
||||||
|
|||||||
@@ -38,9 +38,8 @@ WINE_CMD="deepin-wine"
|
|||||||
#这里会被后续覆盖
|
#这里会被后续覆盖
|
||||||
LOG_FILE=$0
|
LOG_FILE=$0
|
||||||
PUBLIC_DIR="/var/public"
|
PUBLIC_DIR="/var/public"
|
||||||
if [ -z "$WINE_WMCLASS" ]; then
|
|
||||||
export WINE_WMCLASS="$DEB_PACKAGE_NAME"
|
export WINE_WMCLASS="$DEB_PACKAGE_NAME"
|
||||||
fi
|
|
||||||
export WINE_APP_NAME=$(get_app_name ${DEB_PACKAGE_NAME})
|
export WINE_APP_NAME=$(get_app_name ${DEB_PACKAGE_NAME})
|
||||||
if [ -z "$WINE_APP_NAME" ];then
|
if [ -z "$WINE_APP_NAME" ];then
|
||||||
export WINE_APP_NAME=$BOTTLENAME
|
export WINE_APP_NAME=$BOTTLENAME
|
||||||
@@ -253,7 +252,7 @@ CallProcess()
|
|||||||
xdg-mime default "$DEB_PACKAGE_NAME".desktop "$MIME_TYPE"
|
xdg-mime default "$DEB_PACKAGE_NAME".desktop "$MIME_TYPE"
|
||||||
fi
|
fi
|
||||||
# Disable winemenubuilder
|
# Disable winemenubuilder
|
||||||
env WINEPREFIX="$WINEPREFIX" $WINE_CMD reg add 'HKEY_CURRENT_USER\Software\Wine\DllOverrides' /v winemenubuilder.exe /f
|
env WINE_WMCLASS="$DEB_PACKAGE_NAME" WINEPREFIX="$WINEPREFIX" $WINE_CMD reg add 'HKEY_CURRENT_USER\Software\Wine\DllOverrides' /v winemenubuilder.exe /f
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -297,7 +296,7 @@ CallApp()
|
|||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
|
$SHELL_DIR/spark-wine-banner &
|
||||||
FixLink
|
FixLink
|
||||||
debug_log "CallApp $BOTTLENAME arg count $#: $*"
|
debug_log "CallApp $BOTTLENAME arg count $#: $*"
|
||||||
if [ -f "/opt/apps/${DEB_PACKAGE_NAME}/files/pre_run.sh" ];then
|
if [ -f "/opt/apps/${DEB_PACKAGE_NAME}/files/pre_run.sh" ];then
|
||||||
@@ -392,7 +391,7 @@ UpdateApp()
|
|||||||
}
|
}
|
||||||
RunApp()
|
RunApp()
|
||||||
{
|
{
|
||||||
$SHELL_DIR/spark-wine-banner &
|
|
||||||
|
|
||||||
progpid=$(ps -ef | grep "zenity --progress --title=${BOTTLENAME}" | grep -v grep)
|
progpid=$(ps -ef | grep "zenity --progress --title=${BOTTLENAME}" | grep -v grep)
|
||||||
debug_log "run ${BOTTLENAME} progress pid $progpid"
|
debug_log "run ${BOTTLENAME} progress pid $progpid"
|
||||||
@@ -400,6 +399,7 @@ RunApp()
|
|||||||
debug_log "$BOTTLENAME is running"
|
debug_log "$BOTTLENAME is running"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -d "$WINEPREFIX" ]; then
|
if [ -d "$WINEPREFIX" ]; then
|
||||||
if [ ! -f "$WINEPREFIX/PACKAGE_VERSION" ] || [ "$(cat "$WINEPREFIX/PACKAGE_VERSION")" != "$APPVER" ]; then
|
if [ ! -f "$WINEPREFIX/PACKAGE_VERSION" ] || [ "$(cat "$WINEPREFIX/PACKAGE_VERSION")" != "$APPVER" ]; then
|
||||||
UpdateApp
|
UpdateApp
|
||||||
|
|||||||
Reference in New Issue
Block a user