Skip to content
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

更新3.4.0.38deepin10 WeChat,Maximum number of clients reached. #277

Closed
zhuohoudeputao opened this issue Apr 21, 2022 · 6 comments
Closed

Comments

@zhuohoudeputao
Copy link

试过删除.deepinwine里的文件夹,无效。

@sotux
Copy link

sotux commented Apr 21, 2022

这个版本启动后,会运行无数多个 exploere.exe 进程,直接导致 OS 挂掉

@thep0y
Copy link

thep0y commented Apr 21, 2022

跟.deepinwine没有关系,每次运行都会重新生成这个容器,可以通过执行:

WINEPREFIX=$HOME/.deepinwine/Deepin-WeChat deepin-wine6-stable $HOME/.deepinwine/Deepin-WeChat/drive_c/Program\ Files/Tencent/WeChat/WeChat.exe

来解决。

@thep0y
Copy link

thep0y commented Apr 21, 2022

给你提供一下更好的办法,注释 /opt/apps/com.qq.weixin.deepin/files/run.sh中的第24和26行代码,这两行代码设置了错误的环境变量(相对你使用的系统是错误的):

#!/bin/sh

#   Copyright (C) 2016 Deepin, Inc.
#
#   Author:     Li LongYu <lilongyu@linuxdeepin.com>
#               Peng Hao <penghao@linuxdeepin.com>

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

BOTTLENAME="Deepin-WeChat"
APPVER="3.4.0.38deepin10"
EXEC_PATH="c:/Program Files/Tencent/WeChat/WeChat.exe"
START_SHELL_PATH="/opt/deepinwine/tools/run_v4.sh"
export MIME_TYPE=""
export DEB_PACKAGE_NAME="com.qq.weixin.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

@Shimmer66
Copy link

给你提供一下更好的办法,注释 /opt/apps/com.qq.weixin.deepin/files/run.sh中的第24和26行代码,这两行代码设置了错误的环境变量(相对你使用的系统是错误的):

#!/bin/sh

#   Copyright (C) 2016 Deepin, Inc.
#
#   Author:     Li LongYu <lilongyu@linuxdeepin.com>
#               Peng Hao <penghao@linuxdeepin.com>

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

BOTTLENAME="Deepin-WeChat"
APPVER="3.4.0.38deepin10"
EXEC_PATH="c:/Program Files/Tencent/WeChat/WeChat.exe"
START_SHELL_PATH="/opt/deepinwine/tools/run_v4.sh"
export MIME_TYPE=""
export DEB_PACKAGE_NAME="com.qq.weixin.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

注释之后,确实可以正常打开微信了,很是好奇。

@guhan121
Copy link

guhan121 commented May 9, 2022

WINEPREFIX=$HOME/.deepinwine/Deepin-WXWork deepin-wine6-stable $HOME/.deepinwine/Deepin-WXWork/drive_c/Program\ Files/WXWork/WXWork.exe

@kamusis
Copy link

kamusis commented Jun 10, 2022

之前是微信可以打开,但是企业微信无法显示窗口,按照您这里的修改之后,企业微信终于出现窗口了,但是却一直刷新不出二维码。
2022-06-10_14-57

然后参考 #205 解决了二维码刷新的问题。终于可以登录进企业微信了。感谢。

另外,还有一个好奇的地方,就是微信是正常的,而且我检查了微信的run.sh,发现您说的要注释的那两行也是没有注释掉的,但是微信还是正常可以打开和使用。

还有就是直接使用您给的命令行方式来启动。

WINEPREFIX=$HOME/.deepinwine/Deepin-WXWork deepin-wine6-stable $HOME/.deepinwine/Deepin-WXWork/drive_c/Program\ Files/WXWork/WXWork.exe

启动速度很快,而如果直接双击企业微信app运行,则会非常慢才启动成功。这里有什么区别吗?

给你提供一下更好的办法,注释 /opt/apps/com.qq.weixin.deepin/files/run.sh中的第24和26行代码,这两行代码设置了错误的环境变量(相对你使用的系统是错误的):

#!/bin/sh

#   Copyright (C) 2016 Deepin, Inc.
#
#   Author:     Li LongYu <lilongyu@linuxdeepin.com>
#               Peng Hao <penghao@linuxdeepin.com>

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

BOTTLENAME="Deepin-WeChat"
APPVER="3.4.0.38deepin10"
EXEC_PATH="c:/Program Files/Tencent/WeChat/WeChat.exe"
START_SHELL_PATH="/opt/deepinwine/tools/run_v4.sh"
export MIME_TYPE=""
export DEB_PACKAGE_NAME="com.qq.weixin.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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants