[Share Experiences] 使用系统公共deepin-wine6-stable,解决TIM悄悄崩溃问题
Tofloor
poster avatar
deepin-superuser
deepin
2021-12-23 01:49
Author

deepin-wine6-stable 更新到 6.0.0.19 后,解决了TIM 悄悄崩溃的问题。但是 TIM 使用的是自带的低版本 deepin-wine6-stable,需要修改为使用系统中公共 deepin-wine6-stable 才可以解决崩溃问题

1.备份TIM目录中的旧 run.sh 文件

sudo cp /opt/apps/com.qq.office.deepin/files/run.sh /opt/apps/com.qq.office.deepin/files/run.sh.bak

2.复制一份微信的 run.sh 文件(如未安装微信可直接复制帖子末尾的脚本,跳过此步)

sudo cp -r /opt/apps/com.qq.weixin.deepin/files/run.sh /opt/apps/com.qq.office.deepin/files/run.sh

3.修改 TIM 目录中的新 run.sh 文件,修改下图红框位置内容与下图一致

sudo deepin-editor /opt/apps/com.qq.office.deepin/files/run.sh

image.png

4.最好删除一下历史文件

sudo rm -rf ~/.deepinwine/Deepin-TIM
sudo rm -rf ~/.deepinwine/.QQ_run

附件:完整 run.sh 脚本

#!/bin/sh

#   Copyright (C) 2016 Deepin, Inc.
#
#   Author:     Li LongYu 
#               Peng Hao 

version_gt() { test "$(echo "$@" | tr " " "\n" | sort -V | head -n 1)" != "$1"; }

BOTTLENAME="Deepin-TIM"
APPVER="3.3.5.22018deepin8"
EXEC_PATH="c:/Program Files/Tencent/TIM/Bin/TIM.exe"
START_SHELL_PATH="/opt/deepinwine/tools/run_v4.sh"
export MIME_TYPE=""
export DEB_PACKAGE_NAME="com.qq.office.deepin"
export APPRUN_CMD="deepin-wine6-stable"
DISABLE_ATTACH_FILE_DIALOG=""
EXPORT_ENVS=""

export SPECIFY_SHELL_DIR=`dirname $START_SHELL_PATH`

ARCHIVE_FILE_DIR="/opt/apps/$DEB_PACKAGE_NAME/files"

export WINEDLLPATH=/opt/$APPRUN_CMD/lib:/opt/$APPRUN_CMD/lib64

export WINEPREDLL="$ARCHIVE_FILE_DIR/dlls"

if [ -z "$DISABLE_ATTACH_FILE_DIALOG" ];then
    export ATTACH_FILE_DIALOG=1
fi

if [ -n "$EXPORT_ENVS" ];then
    export $EXPORT_ENVS
fi

if [ -n "$EXEC_PATH" ];then
    if [ -z "${EXEC_PATH##*.lnk*}" ];then
        $START_SHELL_PATH $BOTTLENAME $APPVER "C:/windows/command/start.exe" "/Unix" "$EXEC_PATH" "$@"
    else
        $START_SHELL_PATH $BOTTLENAME $APPVER "$EXEC_PATH" "$@"
    fi
else
    $START_SHELL_PATH $BOTTLENAME $APPVER "uninstaller.exe" "$@"
fi
Reply Favorite View the author
All Replies
kingskill
deepin
2021-12-23 03:40
#1

保存一下。。。貌似以后用得到~~~

Reply View the author
tianliang
deepin
2021-12-27 17:47
#2

mark一下,试了应该可以,继续观察。

Reply View the author
deepin-superuser
deepin
2021-12-27 17:52
#3
tianliang

mark一下,试了应该可以,继续观察。

我观察了一周了,确实没问题了

Reply View the author
tianliang
deepin
2021-12-28 17:22
#4
deepin-superuser

我观察了一周了,确实没问题了

用了1天,加上晚上电脑没关机,确实一直正常。

Reply View the author
ZPU
deepin
2022-03-09 23:35
#5

非常感谢,解决了我一大困扰

Reply View the author