mirror of
https://gitee.com/spark-store-project/spark-wine
synced 2025-12-18 21:11:39 +08:00
添加功能
This commit is contained in:
@@ -77,7 +77,7 @@ select_app() {
|
||||
select_non_spark_action(){
|
||||
local app="$1"
|
||||
local app_name="$2"
|
||||
local options=("在终端中打开" "打开容器目录" "清理并重置容器目录")
|
||||
local options=("在终端中打开" "打开容器目录" "清理并重置容器目录" "更多操作")
|
||||
local choice=$(zenity --width=800 --height=600 --list --title="选择操作" --text="选择要对$app_name执行的操作" --column="操作" "${options[@]}")
|
||||
case "$choice" in
|
||||
"在终端中打开")
|
||||
@@ -99,14 +99,27 @@ select_non_spark_action(){
|
||||
rm -rf /home/$(whoami)/.deepinwine/${bottle_name}/*
|
||||
zenity --info --width=300 --text="操作已完成,请重启Wine应用查看"
|
||||
;;
|
||||
"更多操作")
|
||||
if [ -e /usr/bin/deepin-wine-runner ];then
|
||||
/usr/bin/deepin-wine-runner
|
||||
elif [ $(command -v spark-store) ];then
|
||||
spark-store spk://store/tools/spark-deepin-wine-runner
|
||||
elif [ $(command -v deepin-home-appstore-client) ];then
|
||||
xdg-open appstore://deepin-home-appstore-client?app_detail_info/spark-deepin-wine-runner
|
||||
else
|
||||
xdg-open https://gitee.com/gfdgd-xi/deep-wine-runner/releases
|
||||
fi
|
||||
|
||||
;;
|
||||
esac
|
||||
|
||||
}
|
||||
|
||||
# 函数:选择星火wine助手操作
|
||||
select_spark_action() {
|
||||
local app="$1"
|
||||
local app_name="$2"
|
||||
local options=("在终端中打开" "打开容器目录" "清理并重置容器目录" "修改应用缩放" "修改全局缩放")
|
||||
local options=("在终端中打开" "打开容器目录" "清理并重置容器目录" "修改应用缩放" "修改全局缩放" "更多操作")
|
||||
local choice=$(zenity --width=800 --height=600 --list --title="选择操作" --text="选择要对$app_name执行的操作" --column="操作" "${options[@]}")
|
||||
|
||||
case "$choice" in
|
||||
@@ -135,6 +148,17 @@ select_spark_action() {
|
||||
"修改全局缩放")
|
||||
select_scale_action "全局" "$app"
|
||||
;;
|
||||
"更多操作")
|
||||
if [ -e /usr/bin/deepin-wine-runner ];then
|
||||
/usr/bin/deepin-wine-runner
|
||||
elif [ $(command -v spark-store) ];then
|
||||
spark-store spk://store/tools/spark-deepin-wine-runner
|
||||
elif [ $(command -v deepin-home-appstore-client) ];then
|
||||
xdg-open appstore://deepin-home-appstore-client?app_detail_info/spark-deepin-wine-runner
|
||||
else
|
||||
xdg-open https://gitee.com/gfdgd-xi/deep-wine-runner/releases
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
;;
|
||||
esac
|
||||
|
||||
Reference in New Issue
Block a user