-
Notifications
You must be signed in to change notification settings - Fork 387
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
【解决办法】容器重新启动后被重置问题 #270
Comments
建议写在下方为好,本机测试 RunApp()
{
progpid=$(ps -ef | grep "zenity --progress --title=${BOTTLENAME}" | grep -v grep)
debug_log "run ${BOTTLENAME} progress pid $progpid"
if [ -n "$progpid" ]; then
debug_log "$BOTTLENAME is running"
exit 0
fi
if [ -d "$WINEPREFIX" ]; then
UpdateApp | progressbar "$BOTTLENAME" "更新$BOTTLENAME中..."
else
DeployApp | progressbar $BOTTLENAME "初始化$BOTTLENAME中..."
fi
# 将上面没有执行的创建PACKAGE_VERSION的语句移动到这里
mkdir $WINEPREFIX
echo "$APPVER" > "$WINEPREFIX/PACKAGE_VERSION"
CallApp "$@"
} 由于执行 |
感谢。此方案优于您在 #217 的方案。 |
最简单的方法是把 # Check if some visual feedback is possible
-if command -v zenity >/dev/null 2>&1; then
+if false && command -v zenity >/dev/null 2>&1; then
progressbar() 因为这个progressbar的存在,导致 已经使用其他方法修改了 |
下面的内容不一定是最恰当的方法,仅供参考。
deepin wine 的运行脚本路径为
/opt/deepinwine/tools/run_v4.sh
,生成(部署)容器的函数如下:
以后再运行时就会执行:
此函数:
解决办法有两个,一个是修改微信或QQ等 wine 程序的 desktop 中的 Exec 语句为(微信为例):
sed -i "s#Exec=\"/opt/apps/com.qq.weixin.deepin/files/run.sh\" -f %f#Exec=env WINEPREFIX=\"$HOME/.deepinwine/Deepin-WeChat\" deepin-wine6-stable \"$HOME/.deepinwine/Deepin-WeChat/drive_c/Program Files/Tencent/WeChat/WeChat.exe\"#g" /opt/apps/com.qq.weixin.deepin/entries/applications/com.qq.weixin.deepin.desktop
另一个修改此脚本,将
RunApp
函数修改为:The text was updated successfully, but these errors were encountered: