Giter Club home page Giter Club logo

docker-wechat's Introduction

DoChat /dɑɑˈtʃæt/ 盒装微信

Docker Powered By Wine

dockeri.co

DoChat(盒装微信) is a Dockerized WeChat(微信) PC Windows Client for Linux.

DoChat

Image Credit: Docker 101 + Icon Finder, and Ps-ed by Ruoxin Song

Honors

Disclaimer

We have received reports from our user said that their WeChat account has been disabled after using this project, so use it at your own risk:

  1. 昨天用了一下最新版的docker镜像立马微信就被封了 #55

Usage Powered Linux

WeChat PC will be started on your Linux desktop by running the following one-line command:

curl -sL https://raw.githubusercontent.com/huan/docker-wechat/master/dochat.sh | bash

If you’re in China, try the following one-line command if the above one-line command does not work well:

curl -sL https://gitee.com/mirrors/dochat/raw/main/dochat.sh | bash

Just copy/paste the above one-line command to your terminal and press Enter. Then the WeChat PC should appear in your XWindows desktop shortly.

DoChat Term Command

Attention

The dochat.sh script must not be with uid 0 (root user). Running it with uid 0 will lead to an infinite loop that is hard to kill from the terminal. If your user doesn't have the right to run docker please add the user to the docker group sudo usermod -aG docker $USER. A reboot might be neccessary for the changes to take place.

The issue is described in #60.

Features

It just works out-of-the-box with one-line of shell command!

  1. Input/Display Chinese characters perfectly.
  2. Paste copied images to WeChat with Ctrl+V

DoChat Screenshot

Requirements

  1. Linux Ubuntu distribution will be recommended (DoChat was developed with the Ubuntu Desktop 19.10)
    1. Debian support confirmed (#9)
    2. OpenSUSE Leap 15.1 support confirmed (#16)
    3. OpenSUSE Tumbleweed support confirmed (#150)
    4. Arch support confirmed (#26)
    5. Ubuntu(19.04/18.10/18.04) should be able to support
    6. Linux Mint 21.2 Cinnamon support confirmed (#215)
    7. Other Linux distributions: might be able to support
  2. Docker (run sudo apt update && apt install docker.io to install Docker for Ubuntu users)
  3. nvidia-container-toolkit may be installed (#173)

Environment Variables

DOCHAT_DPI

DPI Scale Factors for graphic screen resolution.

DPI Scale factor
96 100%
120 125%
144 150%
192 200%

Default: 120

To enlarge the window & fonts size:

curl -sL https://raw.githubusercontent.com/huan/docker-wechat/master/dochat.sh \
  | DOCHAT_DPI=192 bash

DOCHAT_SKIP_PULL

If you do not want to pull docker image for the latest version at startup everytime, you can set DOCHAT_SKIP_PULL environment variable.

curl -sL https://raw.githubusercontent.com/huan/docker-wechat/master/dochat.sh \
  | DOCHAT_SKIP_PULL=true bash

In case you have downloaded dochat.sh:

DOCHAT_SKIP_PULL=true ./dochat.sh

DOCHAT_DEBUG

Show more debug log messages.

curl -sL https://raw.githubusercontent.com/huan/docker-wechat/master/dochat.sh \
  | DOCHAT_DEBUG=true bash

DOCHAT_WECHAT_VERSION

Use a specific version for WeChat.

You can get a full list of the supported versions from Docker Hub Image Tags at https://hub.docker.com/r/zixia/wechat/tags

For example:

curl -sL https://raw.githubusercontent.com/huan/docker-wechat/master/dochat.sh \
  | DOCHAT_WECHAT_VERSION=3.3.0.115 bash

For Hackers

If you want to control everything by yourself, for example, open multiple WeChat PC client on your desktop; then, you might want to inspect the dochat.sh in our repository and try the following docker command:

docker run \
  --name DoChat \
  --rm \
  -i \
  \
  -v "$HOME/DoChat/WeChat Files/":'/home/user/WeChat Files/' \
  -v "$HOME/DoChat/Applcation Data":'/home/user/.wine/drive_c/users/user/Application Data/' \
  -v /tmp/.X11-unix:/tmp/.X11-unix \
  -v "/run/user/$(id -u)/pulse":"/run/pulse" \
  \
  -e DISPLAY \
  \
  -e XMODIFIERS=@im=fcitx \
  -e GTK_IM_MODULE=fcitx \
  -e QT_IM_MODULE=fcitx \
  -e GID="$(id -g)" \
  -e UID="$(id -u)" \
  \
  --ipc=host \
  --privileged \
  \
  zixia/wechat

Modify it whatever you want to fulfill your needs.

Versioning

The docker image has two schema of the versioning:

  1. X.Y.Z.a: This is for the WeChat PC Windows Client version
    1. zixia/wechat:2.7.1.85: WeChat 2.7.1.85
    2. zixia/wechat:2.8.0.112: WeChat 2.8.0.112
  2. x.y: This is for the docker image version.
    1. zixia/wechat:0.2: docker-wechat version 0.2

The two version schema may overlap with each other.

For example: the zixia/wechat:0.2 may be the same image as the zixia/wechat:2.8.0.112.

Known Issues

  • WeChat 2.8.0.x can not send big images/files (#341)
    • Work around: use 2.7.1.85 instead. (DOCHAT_WECHAT_VERSION=2.7.1.85)
  • In-WeChat Browser does not work (#2)

To-do List

  • Permanent Storage for WeChat PC Login Data Information (#3)
  • Automatically install WeChat PC from .EXE installer when building the Dockerfile. (Test Automation tools might be needed)
  • Monitor WeChat PC version publications so that we can publish the same version number of the docker image with it.
  • Resolve the infinite loop situation when running with uid 0 (#60)
  • New feature: wechat_pc_api, #125

FAQ

System Tray Icon with Gnome Desktop

Install Gnome Extension: Top Icons Plus Git by bijignome

Note 1: there's almost half dozen of the TopIcons extensions with very similar name: TopIcons, TopIcons Redux, TopIcons Plus, TopIcons Plus Git, TopIconsFix. Use TopIcons Plus Git, it's the right one.

Note 2: The TopIcons Plus has the bug that cause the wine itself shows a window on your desktop. (#19)

Exit with code 5 on openSUSE Leap

When you encounter problem that the app exit with code 5 on openSUSE Leap, you need to disable X server access control to allow any user to connect to the X server before you start the app. Use below command to disable it:

$ xhost +

OpenSUSE Tumbleweed Configurations

To address the issue (#150) do the following: (Thanks Wu Bo)

$ xhost +; sudo chown -R $USER $HOME/DoChat/

No main window after start up with 2 or more monitor setup

This could be caused by an old bug in wine with multiple monitor setup. Workaround is to start it up with single monitor and then switch to multiple monitors

This behavior may cause the view disappear when you use the Join Displays mode, so you need change the mode to mirrors when the app start, this script may help:

#bin/bash
xrandr --output HDMI-1-2 --same-as eDP-1-1

curl -sL https://raw.githubusercontent.com/huan/docker-wechat/master/dochat.sh \
  | DOCHAT_SKIP_PULL=true bash &

sleep 5
xrandr --output HDMI-1-2 --right-of eDP-1-1

Change the HDMI-1-2 to your external display name and eDP-1-1 to your built in display name. Display more than two, link to this.

Notice: you must drag the login dialog to built in display side when the process sleep 5, otherwise the view may stuck in the external display.

Links

History

master v0.14

  1. Update to WeChat version 3.3.0.115 (#131)
  2. Upgrade to Wine version 6.0
  3. Upgrade to Debian 11 (bullseye)
  4. Rename default branch from master to main

v0.10 (Mar 12, 2020)

  1. Upgrade wine from v4.0 to v5.0
  2. Deploy to Docker Hub by GitHub Actions with Automatic WeChat Version Number.

v0.8 (Mar 3, 2020)

  1. Add a new configuration environment variable DOCHAT_WECHAT_VERSION to select WeChat version.
  2. Add WeChat v2.8.0.112
    1. 新增订阅号浏览
    2. 新增IPv6网络支持
    3. 新增看一看精选内容
    4. 新增打开聊天中小程序消息
    5. 新增在小程序中使用微信支付
    6. 新增聊天文件面板,可查看和管理所有聊天文件
curl -sL https://raw.githubusercontent.com/huan/docker-wechat/master/dochat.sh \
  | DOCHAT_WECHAT_VERSION=2.8.0.112 bash

v0.5 (Feb 24, 2020)

  1. Add environment variable DOCHAT_DPI to set DPI scale factors for graphicg screen resolution.
  2. Disable auto-update.

v0.4 (Feb 21, 2020)

Got a great logo from my art friend Ruoxin SONG.

  1. Fix Sound (#1)
  2. Fix to not exit during the upgrading progress.

v0.2 (Feb 18, 2020)

The first working version, cheers!

v0.1 (Feb 17, 2020)

Project created.

Thanks

  1. WeChat Desktop on Linux - by @ferrolho
  2. Wine HQ App Database - WeChat
  3. 基于深度操作系统的微信 docker 镜像 by @bestwu
  4. DoChat logo designed by my friend Ruoxin SONG.

Related Projects

  1. DoWork /dɑɑˈwɜːk/ 盒装企业微信: Dockerized WeChat Work (企业微信) PC Windows Client for Linux
  2. Put your WeChat in the box: https://github.com/ChisBread/wechat-box

Contributors

contributor contributor contributor contributor contributor contributor contributor contributor

Author

Huan Li (LinkedIn) Tencent TVP of Chatbot.

Profile of Huan LI (李卓桓) on StackOverflow

Copyright & License

  • Code & Docs © 2020-now Huan Li <[email protected]>
  • Code released under the Apache-2.0 License
  • Docs released under Creative Commons

docker-wechat's People

Contributors

baozidai avatar brunommpreto avatar cjh0613 avatar de0ch avatar etoyz avatar f8-ptrk avatar gouzhuang avatar huan avatar jackielii avatar lnnt avatar mengzyou avatar stingshen avatar wlnirvana avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

docker-wechat's Issues

Install WeChat from Tencent official website

There are several issues listed below:

1 The Trust

We should install WeChat PC from Tencent's official website instead of unpacking from a binary package when building Dockerfile because install unpacked binary might make some peoples not very comfortable.

2 The Legal

According to the WeChat Term of Service: https://www.wechat.com/en/service_terms.html

You may not copy, modify, create derivative works, reverse compile, reverse engineer or extract source codes from WeChat Software, and you may not sell, distribute, redistribute or sublicense WeChat or the WeChat Software, except in each case to the extent that we may not prohibit you from doing so under applicable laws or regulations or you have our prior written consent to do so. Where applicable laws or regulations entitle you to reverse compile or extract source codes from WeChat Software, you will first contact us to request the information you need.

So if we want to distribute, redistribute the WeChat Software, we have to doing so under applicable laws or regulations or you have our prior written consent to do so.

WeChat Update Process

Stage 1: WeChat is running

root@ddb767bd49e8:/# ps axf
  PID TTY      STAT   TIME COMMAND
    1 pts/0    Ss     0:00 /bin/bash
    9 pts/0    SLl    0:06 C:\Program Files\Tencent\WeChat\WeChat.exe
   31 ?        Ss     0:01 /usr/lib/wine/wineserver32 -p0
   37 ?        Ssl    0:00 C:\windows\system32\services.exe
   40 ?        Sl     0:00 C:\windows\system32\winedevice.exe
   48 ?        Sl     0:00 C:\windows\system32\plugplay.exe
   50 pts/0    Sl     0:00 C:\windows\system32\explorer.exe /desktop
   55 ?        Sl     0:00 C:\windows\system32\winedevice.exe
  218 pts/0    R+     0:00 ps axf

Stage 2: Start downloading update

WeChat.exe is doing the job.

Stage 3: Download finished

  1. WeChat.exe exited with code 0
  2. WeChatUpdate.exe start running
  234 ?        Ss     0:01 C:\Program Files\Tencent\WeChat\WeChatUpdate.exe 1003

Stage 4: Upgrading

303 ?        Ss     0:05 C:\Program Files\Tencent\WeChat\WeChatUpdate.exe 1001

Stage 5: Exit

The WeChatUpdate.exe will exit after the upgrading.

cann't run docker-wechat in Vmware Ubuntu 19.10

I just install Ubuntu 19.10 inside Vmware

and run docker.io
use your dochat.sh
then it keep looping this error

+ chown user:group '/home/user/.wine/drive_c/users/user/Application Data' '/home/user/WeChat Files'
+ setupHostname
+ export HOSTNAME=DoChat
+ HOSTNAME=DoChat
+ echo DoChat
+ hostname DoChat
+ exec gosu user /entrypoint.sh
+ main
++ id -u
+ '[' 0 -ne 0 ']'
+ setupUserGroup
+ '[' -n 29 ']'
+ groupmod -o -g 29 audio
+ '[' -n 44 ']'
+ groupmod -o -g 44 video
++ id -g user
+ '[' 0 '!=' 0 ']'
++ id -u user
+ '[' 0 '!=' 0 ']'
+ chown user:group '/home/user/.wine/drive_c/users/user/Application Data' '/home/user/WeChat Files'
+ setupHostname
+ export HOSTNAME=DoChat
+ HOSTNAME=DoChat
+ echo DoChat
+ hostname DoChat
+ exec gosu user /entrypoint.sh
+ main
++ id -u
+ '[' 0 -ne 0 ']'
+ setupUserGroup
+ '[' -n 29 ']'
+ groupmod -o -g 29 audio
^C+ '[' -n 44 ']'
+ groupmod -o -g 44 video
++ id -g user
+ '[' 0 '!=' 0 ']'
++ id -u user
+ '[' 0 '!=' 0 ']'
+ chown user:group '/home/user/.wine/drive_c/users/user/Application Data' '/home/user/WeChat Files'
+ setupHostname
+ export HOSTNAME=DoChat
+ HOSTNAME=DoChat
+ echo DoChat
+ hostname DoChat
+ exec gosu user /entrypoint.sh

截屏2020-02-2821 49 52
截屏2020-02-2822 04 17

Need to change docker arguments on Ubuntu 20.04

System: Ubuntu 20.04

Docker version: 19.03.6

Need to change line 92 from

    -v "$HOME/DoChat/WeChat Files/":'/home/user/WeChat Files/' \

to

    -v "$HOME/DoChat/WeChat Files/":'/home/user/My Documents/WeChat Files/' \

or WeChat will not be able to store files

exit code 0

it consistently gives "Exited with code [0]:

🚀 Starting DoChat /dɑɑˈtʃæt/ ...

[DoChat] 盒装微信 v0.5.4
[DoChat] Starting...
[DoChat] Found new version
[DoChat] WeChat.exe exited


📦 DoChat Exited with code [0]

Run with debug on:

Using default tag: latest
latest: Pulling from zixia/wechat
Digest: sha256:660fd47f3e4687e8d1ad4468553d9dd32001472350c5f39ade22ce997b1f0cf3
Status: Image is up to date for zixia/wechat:latest

🚀 Pulling the latest docker image done.
🚀 Starting DoChat /dɑɑˈtʃæt/ ...

+ main
++ id -u
+ '[' 0 -ne 0 ']'
+ setupUserGroup
+ '[' -n 29 ']'
+ groupmod -o -g 29 audio
+ '[' -n 44 ']'
+ groupmod -o -g 44 video
++ id -g user
+ '[' 1000 '!=' 1000 ']'
++ id -u user
+ '[' 1000 '!=' 1000 ']'
+ chown user:group '/home/user/.wine/drive_c/users/user/Application Data' '/home/user/WeChat Files'
+ setupHostname
+ export HOSTNAME=DoChat
+ HOSTNAME=DoChat
+ echo DoChat
+ hostname DoChat
+ exec gosu user /entrypoint.sh
+ main
++ id -u
+ '[' 1000 -ne 0 ']'
+ startWechat
+ hello
++ cat /VERSION
+ VERSION=0.5.4
+ echo '[DoChat] 盒装微信 v0.5.4'
+ disableUpgrade
[DoChat] 盒装微信 v0.5.4
+ wine REG ADD 'HKEY_CURRENT_USER\Software\Tencent\WeChat' /v NeedUpdateType /t REG_DWORD /d 0 /f
+ CONFIG_EX_INI_FILE='/home/user/.wine/drive_c/users/user/Application Data/Tencent/WeChat/All Users/config/configEx.ini'
+ '[' -e '/home/user/.wine/drive_c/users/user/Application Data/Tencent/WeChat/All Users/config/configEx.ini' ']'
+ setupFontDpi
+ DELETE_KEYS=('HKEY_CURRENT_USER\Control Panel\Desktop' 'HKEY_CURRENT_USER\Software\Wine\Fonts')
+ for key in "${DELETE_KEYS[@]}"
+ wine reg DELETE 'HKEY_CURRENT_USER\Control Panel\Desktop' /v LogPixels /f
+ true
+ for key in "${DELETE_KEYS[@]}"
+ wine reg DELETE 'HKEY_CURRENT_USER\Software\Wine\Fonts' /v LogPixels /f
+ wine reg ADD 'HKEY_LOCAL_MACHINE\System\CurrentControlSet\Hardware Profiles\Current\Software\Fonts' /v LogPixels /t REG_DWORD /d 120 /f
+ '[' -n true ']'
+ wine reg query 'HKEY_CURRENT_USER\Software\Tencent\WeChat'

HKEY_CURRENT_USER\Software\Tencent\WeChat
    NeedUpdateType    REG_DWORD    0x0

+ true
+ echo '[DoChat] Starting...'
+ '[' -n true ']'
+ unset WINEDEBUG
[DoChat] Starting...
+ wine 'C:\Program Files\Tencent\WeChat\WeChat.exe'
0031:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
0031:err:winediag:nodrv_CreateWindow Make sure that your X server is running and that $DISPLAY is set correctly.
003f:err:dbghelp:pe_load_dbg_file Couldn't find .DBG file "dll\\riched20.dbg" (L"C:\\Program Files\\Tencent\\WeChat")

Does it support Arch linux

I have try run on my archlinux, but it has an error with it.

OS

NAME="Arch Linux"
PRETTY_NAME="Arch Linux"
ID=arch
BUILD_ID=rolling
ANSI_COLOR="0;36"
HOME_URL="https://www.archlinux.org/"
DOCUMENTATION_URL="https://wiki.archlinux.org/"
SUPPORT_URL="https://bbs.archlinux.org/"
BUG_REPORT_URL="https://bugs.archlinux.org/"
LOGO=archlinux

Start log

+ main
++ id -u
+ '[' 0 -ne 0 ']'
+ setupUserGroup
+ '[' -n 995 ']'
+ groupmod -o -g 995 audio
+ '[' -n 986 ']'
+ groupmod -o -g 986 video
++ id -g user
+ '[' 1000 '!=' 1000 ']'
++ id -u user
+ '[' 1000 '!=' 1000 ']'
+ chown user:group '/home/user/.wine/drive_c/users/user/Application Data' '/home/user/WeChat Files'
+ setupHostname
+ export HOSTNAME=DoChat
+ HOSTNAME=DoChat
+ echo DoChat
+ hostname DoChat
+ exec gosu user /entrypoint.sh
+ main
++ id -u
+ '[' 1000 -ne 0 ']'
+ startWechat
+ hello
++ cat /VERSION
+ VERSION=0.7.0
+ echo '[DoChat] 盒装微信 v0.7.0'
[DoChat] 盒装微信 v0.7.0
+ disableUpgrade
+ wine REG ADD 'HKEY_CURRENT_USER\Software\Tencent\WeChat' /v NeedUpdateType /t REG_DWORD /d 0 /f
+ CONFIG_EX_INI_FILE='/home/user/.wine/drive_c/users/user/Application Data/Tencent/WeChat/All Users/config/configEx.ini'
+ '[' -e '/home/user/.wine/drive_c/users/user/Application Data/Tencent/WeChat/All Users/config/configEx.ini' ']'
+ setupFontDpi
+ DELETE_KEYS=('HKEY_CURRENT_USER\Control Panel\Desktop' 'HKEY_CURRENT_USER\Software\Wine\Fonts')
+ for key in "${DELETE_KEYS[@]}"
+ wine reg DELETE 'HKEY_CURRENT_USER\Control Panel\Desktop' /v LogPixels /f
+ true
+ for key in "${DELETE_KEYS[@]}"
+ wine reg DELETE 'HKEY_CURRENT_USER\Software\Wine\Fonts' /v LogPixels /f
+ wine reg ADD 'HKEY_LOCAL_MACHINE\System\CurrentControlSet\Hardware Profiles\Current\Software\Fonts' /v LogPixels /t REG_DWORD /d 120 /f
+ '[' -n true ']'
+ unset WINEDEBUG
+ wine reg query 'HKEY_CURRENT_USER\Software\Tencent\WeChat'

HKEY_CURRENT_USER\Software\Tencent\WeChat
    NeedUpdateType    REG_DWORD    0x0

[DoChat] DISPLAY=:0
[DoChat] Starting...
+ echo '[DoChat] DISPLAY=:0'
+ true
+ echo '[DoChat] Starting...'
+ '[' -n true ']'
+ wine 'C:\Program Files\Tencent\WeChat\WeChat.exe'
0040:err:winediag:SECUR32_initNTLMSP ntlm_auth was not found or is outdated. Make sure that ntlm_auth >= 3.0.25 is in your path. Usually, you can find it in the winbind package of your distribution.
[0229/150228:INFO:exception_record.cc(518)] [QB]Process ID: 50 Type: 1
[0229/150228:ERROR:network_change_notifier_win.cc(156)] WSALookupServiceBegin failed with: 8

Question:16.04,一气呵成自动exit

请问docker run 之后一气呵成自动结束exit是怎么回事呀,是我的问题吗?

[DoChat] 盒装微信 v0.10.3
[DoChat] WeChat 2.8.0.121
[DoChat] Starting...
[DoChat] Found new version
[DoChat] WeChat.exe exited

我用的是:

docker run \
  --name DoChat \
  --rm \
  -i \
  \
  -v "$HOME/DoChat/WeChat Files/":'/home/user/WeChat Files/' \
  -v "$HOME/DoChat/Applcation Data":'/home/user/.wine/drive_c/users/user/Application Data/' \
  -v /tmp/.X11-unix:/tmp/.X11-unix \
  \
  -e DISPLAY \
  \
  -e XMODIFIERS=@im=fcitx \
  -e GTK_IM_MODULE=fcitx \
  -e QT_IM_MODULE=fcitx \
  -e GID="$(id -g)" \
  -e UID="$(id -u)" \
  \
  --ipc=host \
  --privileged \
  \
  zixia/wechat

Debian buster DoChat Exited with code [0]如何解决?

curl -sL https://raw.githubusercontent.com/huan/docker-wechat/master/dochat.sh \
>   | DOCHAT_DEBUG=true bash

       ____         ____ _           _
      |  _ \  ___  / ___| |__   __ _| |_
      | | | |/ _ \| |   | '_ \ / _` | __|
      | |_| | (_) | |___| | | | (_| | |_
      |____/ \___/ \____|_| |_|\__,_|\__|

      https://github.com/huan/docker-wechat

                +--------------+
               /|             /|
              / |            / |
             *--+-----------*  |
             |  |           |  |
             |  |   盒装    |  |
             |  |   微信    |  |
             |  +-----------+--+
             | /            | /
             |/             |/
             *--------------*

      DoChat /dɑɑˈtʃæt/ (Docker-weChat) is:

      📦 a Docker image
      🤐 for running PC Windows WeChat
      💻 on your Linux desktop
      💖 by one-line of command

🚀 Pulling the docker image...

2.7.1.85: Pulling from zixia/wechat
Digest: sha256:e6e9d21c7cd1dfae0484e697f12f5f3c401de2f02e771d061868740e0d26549d
Status: Image is up to date for zixia/wechat:2.7.1.85
docker.io/zixia/wechat:2.7.1.85

🚀 Pulling the docker image done.
🚀 Starting DoChat /dɑɑˈtʃæt/ ...

++ id -u
+ '[' 0 -ne 0 ']'
+ '[' -n 29 ']'
+ groupmod -o -g 29 audio
+ '[' -n 44 ']'
+ groupmod -o -g 44 video
++ id -g user
+ '[' 1000 '!=' 1000 ']'
++ id -u user
+ '[' 1000 '!=' 1000 ']'
+ chown user:group '/home/user/.wine/drive_c/users/user/Application Data' '/home/user/WeChat Files'
+ export HOSTNAME=DoChat
+ HOSTNAME=DoChat
+ echo DoChat
+ hostname DoChat
+ exec gosu user:group /entrypoint.sh
++ id -u
+ '[' 1000 -ne 0 ']'
+ '[' -n true ']'
+ wine reg query 'HKEY_CURRENT_USER\Software\Tencent\WeChat'
reg��ϵͳ�޷��ҵ�ָ����ע��������ֵ
Register for Wechat not found ?
+ echo 'Register for Wechat not found ?'
+ exec wine 'C:\Program Files\Tencent\WeChat\WeChat.exe'

📦 DoChat Exited with code [0]

🐞 Bug Report: https://github.com/huan/docker-wechat/issues

In-WeChat Browser not work

Only a blank page can be shown.

It's mainly because the Gecko is not working as expected, so is the iexplorer.exe.

Needs to be fixed.

unclear fonts in debian buster

avatar

avatar

my fonts info

apt search fonts-wqy
正在排序... 完成
全文搜索... 完成  
fonts-wqy-microhei/stable,now 0.2.0-beta-3 all [已安装]
  Sans-serif style CJK font derived from Droid

fonts-wqy-zenhei/stable,now 0.9.45-7 all [已安装]
  "WenQuanYi Zen Hei" A Hei-Ti Style (sans-serif) Chinese font

xfonts-wqy/stable,now 1.0.0~rc1-6 all [已安装]
  WenQuanYi Bitmap Song CJK font for X

os info:

mmc@debian ~ $ screenfetch
         _,met$$$$$gg.           xxx@debian
      ,g$$$$$$$$$$$$$$$P.        OS: Debian 10 buster
    ,g$$P""       """Y$$.".      Kernel: x86_64 Linux 4.19.0-8-amd64
   ,$$P'              `$$$.      Uptime: 1h 15m
  ',$$P       ,ggs.     `$$b:    Packages: 1672
  `d$$'     ,$P"'   .    $$$     Shell: zsh 5.7.1
   $$P      d$'     ,    $$P     Resolution: 1366x768
   $$:      $$.   -    ,d$$'     DE: XFCE
   $$\;      Y$b._   _,d$P'      WM: Xfwm4
   Y$$.    `.`"Y$$$$P"'          WM Theme: JacWin10
   `$$b      "-.__               GTK Theme: Windows10 [GTK2]
    `Y$$                         Icon Theme: Faenza
     `Y$$.                       Font: 文泉驿等宽微米黑 10
       `$$b.                     CPU: Intel Core i5-3320M @ 4x 3.3GHz [54.0°C]
         `Y$$b.                  GPU: intel
            `"Y$b._              RAM: 5093MiB / 15741MiB
                `""""           

Not initializing in Deepin OS (debian based)

Hi

I've tried using it on Deepin and the program won't start

uname -a
Linux zeus 4.15.0-30deepin-generic #31 SMP Fri Nov 30 04:29:02 UTC 2018 x86_64 GNU/Linux

image

It will only show the window with the information regarding the zoom: "提示微信已按系统设置的比例放大到125%。如不需放大,可在“设置->通用设置->适配系统缩放比例”取消勾选。确定"

My docker version is: Docker version 18.09.6, build 481bc77

The text in the input box is invisible

你好~盒装微信非常好用,很棒很厉害。
在使用的时候我遇到了这样子的问题:
输入框内输入的文字并没有显示,无论是中文或英文。
虽然文字在输入框中不可见,但当我点击发送时,我的输入文字是被发送的,在聊天记录中可见。(即我的输入实际上输入到了我的输入框,但我无法看到它,除非我将它发送出去)
请问这个有什么好的解决方法吗?
谢谢!

make the auto screen size as an option for small screens in debian buster

Hi, my laptop is small, the default option of wechat makes everything too big, and could you please make it as an option that user can set manually? thank you very much!

avatar

os:

mmc@debian ~ $ screenfetch
         _,met$$$$$gg.           xxx@debian
      ,g$$$$$$$$$$$$$$$P.        OS: Debian 10 buster
    ,g$$P""       """Y$$.".      Kernel: x86_64 Linux 4.19.0-8-amd64
   ,$$P'              `$$$.      Uptime: 1h 15m
  ',$$P       ,ggs.     `$$b:    Packages: 1672
  `d$$'     ,$P"'   .    $$$     Shell: zsh 5.7.1
   $$P      d$'     ,    $$P     Resolution: 1366x768
   $$:      $$.   -    ,d$$'     DE: XFCE
   $$\;      Y$b._   _,d$P'      WM: Xfwm4
   Y$$.    `.`"Y$$$$P"'          WM Theme: JacWin10
   `$$b      "-.__               GTK Theme: Windows10 [GTK2]
    `Y$$                         Icon Theme: Faenza
     `Y$$.                       Font: 文泉驿等宽微米黑 10
       `$$b.                     CPU: Intel Core i5-3320M @ 4x 3.3GHz [54.0°C]
         `Y$$b.                  GPU: intel
            `"Y$b._              RAM: 5093MiB / 15741MiB
                `""""

[Problem] The DOCHAT_DPI do not work on VERSION=2.7.1.85

Description

Whatever the value of DOCHAT_DPI set, there is no change for the UI. See below picture, I set DOCHAT_DPI= 144, the display is not clear.

image

APP & OS Version

VERSION=2.7.1.85

NAME="openSUSE Leap"
VERSION="15.1"
ID="opensuse-leap"
ID_LIKE="suse opensuse"
VERSION_ID="15.1"

More Info

Tried VERSION=2.8.0.121, this is no DPI problem, but has other problems.

exits with status code 1

I am running on Ubuntu 16.04 LTS and using dochat.sh

+ main
++ id -u
+ '[' 0 -ne 0 ']'
+ setupUserGroup
+ '[' -n 29 ']'
+ groupmod -o -g 29 audio
+ '[' -n 44 ']'
+ groupmod -o -g 44 video
++ id -g user
+ '[' 1001 '!=' 1000 ']'
+ groupmod -o -g 1001 group
++ id -u user
+ '[' 1001 '!=' 1000 ']'
+ usermod -o -u 1001 user
+ chown user:group '/home/user/.wine/drive_c/users/user/Application Data' '/home/user/WeChat Files'
+ setupHostname
+ export HOSTNAME=DoChat
+ HOSTNAME=DoChat
+ echo DoChat
+ hostname DoChat
+ exec gosu user /entrypoint.sh
+ main
++ id -u
+ '[' 1001 -ne 0 ']'
+ startWechat
+ hello
++ cat /VERSION
[DoChat] 盒装微信 v0.5.2
+ VERSION=0.5.2
+ echo '[DoChat] 盒装微信 v0.5.2'
+ disableUpgrade
+ wine REG ADD 'HKEY_CURRENT_USER\Software\Tencent\WeChat' /v NeedUpdateType /t REG_DWORD /d 0 /f

[Problem] Can not start on openSUSE, exit with code 5 (xhost + needed)

Docker Host

NAME="openSUSE Leap"
VERSION="15.1"
ID="opensuse-leap"
ID_LIKE="suse opensuse"
VERSION_ID="15.1"
PRETTY_NAME="openSUSE Leap 15.1"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:opensuse:leap:15.1"
BUG_REPORT_URL="https://bugs.opensuse.org"
HOME_URL="https://www.opensuse.org/"

Docker Version

Client:
 Version:           19.03.1
 API version:       1.40
 Go version:        go1.12.6
 Git commit:        74b1e89e8ac6
 Built:             Fri Jul 26 12:00:00 2019
 OS/Arch:           linux/amd64
 Experimental:      false

Server:
 Engine:
  Version:          19.03.1
  API version:      1.40 (minimum version 1.12)
  Go version:       go1.12.6
  Git commit:       74b1e89e8ac6
  Built:            Fri Jul 26 12:00:00 2019
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          v1.2.6
  GitCommit:        894b81a4b802e4eb2a91d1ce216b8817763c29fb
 runc:
  Version:          1.0.0-rc8
  GitCommit:        425e105d5a03fabd737a126ad93d62a9eeede87f
 docker-init:
  Version:          0.1.3_catatonit
  GitCommit:

Start Logs

🚀 Starting DoChat /dɑɑˈtʃæt/ ...

+ main
++ id -u
+ '[' 0 -ne 0 ']'
+ setupUserGroup
+ '[' -n 492 ']'
+ groupmod -o -g 492 audio
+ '[' -n 484 ']'
+ groupmod -o -g 484 video
++ id -g user
+ '[' 100 '!=' 1000 ']'
+ groupmod -o -g 100 group
++ id -u user
+ '[' 1000 '!=' 1000 ']'
+ chown user:group '/home/user/.wine/drive_c/users/user/Application Data' '/home/user/WeChat Files'
+ setupHostname
+ export HOSTNAME=DoChat
+ HOSTNAME=DoChat
+ echo DoChat
+ hostname DoChat
+ exec gosu user /entrypoint.sh
+ main
++ id -u
+ '[' 1000 -ne 0 ']'
+ startWechat
+ hello
++ cat /VERSION
+ VERSION=0.5.3
+ echo '[DoChat] 盒装微信 v0.5.3'
+ disableUpgrade
[DoChat] 盒装微信 v0.5.3
+ wine REG ADD 'HKEY_CURRENT_USER\Software\Tencent\WeChat' /v NeedUpdateType /t REG_DWORD /d 0 /f
+ CONFIG_EX_INI_FILE='/home/user/.wine/drive_c/users/user/Application Data/Tencent/WeChat/All Users/config/configEx.ini'
+ '[' -e '/home/user/.wine/drive_c/users/user/Application Data/Tencent/WeChat/All Users/config/configEx.ini' ']'
+ setupFontDpi
+ DELETE_KEYS=('HKEY_CURRENT_USER\Control Panel\Desktop' 'HKEY_CURRENT_USER\Software\Wine\Fonts')
+ for key in "${DELETE_KEYS[@]}"
+ wine reg DELETE 'HKEY_CURRENT_USER\Control Panel\Desktop' /v LogPixels /f
+ true
+ for key in "${DELETE_KEYS[@]}"
+ wine reg DELETE 'HKEY_CURRENT_USER\Software\Wine\Fonts' /v LogPixels /f
+ wine reg ADD 'HKEY_LOCAL_MACHINE\System\CurrentControlSet\Hardware Profiles\Current\Software\Fonts' /v LogPixels /t REG_DWORD /d 120 /f
+ '[' -n true ']'
+ wine reg query 'HKEY_CURRENT_USER\Software\Tencent\WeChat'

HKEY_CURRENT_USER\Software\Tencent\WeChat
    NeedUpdateType    REG_DWORD    0x0

+ true
+ echo '[DoChat] Starting...'
+ '[' -n true ']'
[DoChat] Starting...
+ wine 'C:\Program Files\Tencent\WeChat\WeChat.exe'

And exited with code 5 .

black block

There is a small black block about wine in the middle of the screen,which cannot be turned off

X Error of failed request: GLXBadContext

  • Ubuntu 19.10
  • Nvidia 430.50
  • zixia/wechat:2.9.0.114
$ wine home/user/.wine/drive_c/Program\ Files/Tencent/WeChat/WeChat.exe 

[0426/191233:INFO:exception_record.cc(518)] [QB]Process ID: 8 Type: 1
[0426/191233:ERROR:network_change_notifier_win.cc(156)] WSALookupServiceBegin failed with: 8
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
X Error of failed request:  GLXBadContext
  Major opcode of failed request:  152 (GLX)
  Minor opcode of failed request:  6 (X_GLXIsDirect)
  Serial number of failed request:  628
  Current serial number in output stream:  627

$ glxinfo
name of display: :1
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
X Error of failed request:  GLXBadContext
  Major opcode of failed request:  152 (GLX)
  Minor opcode of failed request:  6 (X_GLXIsDirect)
  Serial number of failed request:  63
  Current serial number in output stream:  62

Maybe it's related to #29

Links

  1. scottyhardy/docker-wine#57

unexpected EOF

Debian amd64 10.3.0
Docker version 19.03.8, build afacb8b7f0

我用了命令 "curl -sL https://raw.githubusercontent.com/huan/docker-wechat/master/dochat.sh | sudo bash".如果没sudo的话,报错显示权限不够.
但是加上sudo,就出现这个结果.
____ ____ _ _ | _ \ ___ / ___| |__ __ _| |_ | | | |/ _ \| | | '_ \ / _ | |
| || | () | |
| | | | (| | |_
|/ _/ _|| ||_,|_|

  https://github.com/huan/docker-wechat

            +--------------+
           /|             /|
          / |            / |
         *--+-----------*  |
         |  |           |  |
         |  |   盒装    |  |
         |  |   微信    |  |
         |  +-----------+--+
         | /            | /
         |/             |/
         *--------------*

  DoChat /dɑɑˈtʃæt/ (Docker-weChat) is:

  📦 a Docker image
  🤐 for running PC Windows WeChat
  💻 on your Linux desktop
  💖 by one-line of command

🚀 Pulling the docker image...

2.7.1.85: Pulling from zixia/wechat
93956c6f8d9e: Pull complete
46bddb84d1c5: Pull complete
15fa85048576: Pull complete
8aa40341c4fa: Pull complete
1e85f9d3a0e2: Pull complete
1e7ba6fed8ef: Downloading [==================================================>] 141.2MB/141.2MB
522c0a74c4cc: Download complete
bb6c04ebadfd: Download complete
2d5b3070ed76: Downloading [==================================================>] 65.85MB/65.85MB
375ed383c7a8: Download complete
4e20fedae17a: Download complete
517d52506e35: Download complete
be64ac073317: Download complete
unexpected EOF
`

No Sound

The WeChat PC said there's no audio device when it needs to play any audio.

However, the winecfg can configure sounds and t also can play sound without any problem.

To be fixed.

Cannot run latest wechat with docker

I tried to run wechat with latest docker image, but failed.

 $ docker run zixia/wechat
[DoChat] 盒装微信 v0.10.4
[DoChat] WeChat 2.7.1.88
[DoChat] Starting...
[DoChat] Found new version
[DoChat] WeChat.exe exited

The environment is: Ubuntu 18.04

Could i run it on my mac?

I have try to run it on my mac,but some Linux commond not found in macos
bash: line 75: getent: command not found bash: line 75: getent: command not found [DoChat] 盒装微信 v0.7.0 FAIL: "reg add HKEY_CURRENT_USER\Software\Tencent\WeChat /v NeedUpdateType /d 0"

报错exec user process caused "exec format error"

硬件:Nvidia Jetson Nano
系统:Ubuntu 18.04 LTS
架构:Arm64
输出:

nano@jetsonnano:~/Desktop$ sudo bash dochat.sh 

       ____         ____ _           _
      |  _ \  ___  / ___| |__   __ _| |_
      | | | |/ _ \| |   | '_ \ / _` | __|
      | |_| | (_) | |___| | | | (_| | |_
      |____/ \___/ \____|_| |_|\__,_|\__|

      https://github.com/huan/docker-wechat

                +--------------+
               /|             /|
              / |            / |
             *--+-----------*  |
             |  |           |  |
             |  |   盒装    |  |
             |  |   微信    |  |
             |  +-----------+--+
             | /            | /
             |/             |/
             *--------------*

      DoChat /dɑɑˈtʃæt/ (Docker-weChat) is:

      📦 a Docker image
      🤐 for running PC Windows WeChat
      💻 on your Linux desktop
      💖 by one-line of command

🚀 Pulling the docker image...

2.7.1.85: Pulling from zixia/wechat
Digest: sha256:e6e9d21c7cd1dfae0484e697f12f5f3c401de2f02e771d061868740e0d26549d
Status: Image is up to date for zixia/wechat:2.7.1.85
docker.io/zixia/wechat:2.7.1.85

🚀 Pulling the docker image done.
🚀 Starting DoChat /dɑɑˈtʃæt/ ...

standard_init_linux.go:211: exec user process caused "exec format error"

DoChatCannotRun

manjaro 停留在starting。。。。没有界面出来,然后我debug后发现好像一直在重复创建用户

OS: Manjaro 19.0.2 Kyria
Kernel: x86_64 Linux 5.4.28-1-MANJARO
shell: fish 3.1.0
Resolution: 1366x768
VM:i3
DEBUG_LOG:
++ id -u

  • '[' 0 -ne 0 ']'
  • '[' -n 995 ']'
  • groupmod -o -g 995 audio
  • '[' -n 986 ']'
  • groupmod -o -g 986 video
    ++ id -g user
  • '[' 0 '!=' 1000 ']'
  • groupmod -o -g 0 group
    ++ id -u user
  • '[' 0 '!=' 1000 ']'
  • usermod -o -u 0 user
  • chown user:group '/home/user/.wine/drive_c/users/user/Application Data' '/home/user/WeChat Files'
  • export HOSTNAME=DoChat
  • HOSTNAME=DoChat
  • echo DoChat
  • hostname DoChat
  • exec gosu user:group /entrypoint.sh
    ++ id -u
  • '[' 0 -ne 0 ']'
  • '[' -n 995 ']'
  • groupmod -o -g 995 audio
  • '[' -n 986 ']'
  • groupmod -o -g 986 video
    ++ id -g user
  • '[' 0 '!=' 0 ']'
    ++ id -u user
  • '[' 0 '!=' 0 ']'
  • chown user:group '/home/user/.wine/drive_c/users/user/Application Data' '/home/user/WeChat Files'
  • export HOSTNAME=DoChat
  • HOSTNAME=DoChat
  • echo DoChat
  • hostname DoChat
  • exec gosu user:group /entrypoint.sh
    ++ id -u
  • '[' 0 -ne 0 ']'
  • '[' -n 995 ']'
  • groupmod -o -g 995 audio
  • '[' -n 986 ']'
  • groupmod -o -g 986 video
    ++ id -g user
  • '[' 0 '!=' 0 ']'
    ++ id -u user
  • '[' 0 '!=' 0 ']'
  • chown user:group '/home/user/.wine/drive_c/users/user/Application Data' '/home/user/WeChat Files'
  • export HOSTNAME=DoChat
  • HOSTNAME=DoChat
  • echo DoChat
  • hostname DoChat
  • exec gosu user:group /entrypoint.sh
    ++ id -u
  • '[' 0 -ne 0 ']'
  • '[' -n 995 ']'
  • groupmod -o -g 995 audio
  • '[' -n 986 ']'
  • groupmod -o -g 986 video
    ++ id -g user
  • '[' 0 '!=' 0 ']'
    ++ id -u user
  • '[' 0 '!=' 0 ']'
  • chown user:group '/home/user/.wine/drive_c/users/user/Application Data' '/home/user/WeChat Files'
  • export HOSTNAME=DoChat
  • HOSTNAME=DoChat
  • echo DoChat
  • hostname DoChat
  • exec gosu user:group /entrypoint.sh
    ..............

发现几个小问题

1, 是我这里字体发虚,不知道需要什么字体,我的字体

apt search fonts-wqy
正在排序... 完成
全文搜索... 完成  
fonts-wqy-microhei/stable,now 0.2.0-beta-3 all [已安装]
  Sans-serif style CJK font derived from Droid

fonts-wqy-zenhei/stable,now 0.9.45-7 all [已安装]
  "WenQuanYi Zen Hei" A Hei-Ti Style (sans-serif) Chinese font

xfonts-wqy/stable,now 1.0.0~rc1-6 all [已安装]
  WenQuanYi Bitmap Song CJK font for X

2, 默认选中的那个适配窗口能不能外面配置开关不启用?我这里默认很大,更丑了
3, 打开以后,窗口放着不动,几秒以后,窗口拖动会卡,我的机器16g内存。ssd,不可能是机器问题的,平时开3个virtualbox都不卡顿。
4, 另外,输入法框框能否跟随? 这个和那个字体问题一样,让我很是郁闷
5, 默认的微信的表情,似乎不能识别。

Found new version WeChat.exe exited

[DoChat] 盒装微信 v0.8.0
[DoChat] WeChat 2.8.0.112
[DoChat] Starting...
[DoChat] Found new version
[DoChat] WeChat.exe exited

📦 DoChat Exited with code [0]

input box positoin adjustment in debian buster

avatar

can the input box be close to the cursor? sometimes makes me crazy

os:

mmc@debian ~ $ screenfetch
         _,met$$$$$gg.           xxx@debian
      ,g$$$$$$$$$$$$$$$P.        OS: Debian 10 buster
    ,g$$P""       """Y$$.".      Kernel: x86_64 Linux 4.19.0-8-amd64
   ,$$P'              `$$$.      Uptime: 1h 15m
  ',$$P       ,ggs.     `$$b:    Packages: 1672
  `d$$'     ,$P"'   .    $$$     Shell: zsh 5.7.1
   $$P      d$'     ,    $$P     Resolution: 1366x768
   $$:      $$.   -    ,d$$'     DE: XFCE
   $$\;      Y$b._   _,d$P'      WM: Xfwm4
   Y$$.    `.`"Y$$$$P"'          WM Theme: JacWin10
   `$$b      "-.__               GTK Theme: Windows10 [GTK2]
    `Y$$                         Icon Theme: Faenza
     `Y$$.                       Font: 文泉驿等宽微米黑 10
       `$$b.                     CPU: Intel Core i5-3320M @ 4x 3.3GHz [54.0°C]
         `Y$$b.                  GPU: intel
            `"Y$b._              RAM: 5093MiB / 15741MiB
                `""""

great thanks.

if chatting window is open, there will be strange shadow on the screen in debian buster

avatar

avatar

when i click close button of the right-top chatting window, the strange shadow disappeared.

os:

mmc@debian ~ $ screenfetch
         _,met$$$$$gg.           xxx@debian
      ,g$$$$$$$$$$$$$$$P.        OS: Debian 10 buster
    ,g$$P""       """Y$$.".      Kernel: x86_64 Linux 4.19.0-8-amd64
   ,$$P'              `$$$.      Uptime: 1h 15m
  ',$$P       ,ggs.     `$$b:    Packages: 1672
  `d$$'     ,$P"'   .    $$$     Shell: zsh 5.7.1
   $$P      d$'     ,    $$P     Resolution: 1366x768
   $$:      $$.   -    ,d$$'     DE: XFCE
   $$\;      Y$b._   _,d$P'      WM: Xfwm4
   Y$$.    `.`"Y$$$$P"'          WM Theme: JacWin10
   `$$b      "-.__               GTK Theme: Windows10 [GTK2]
    `Y$$                         Icon Theme: Faenza
     `Y$$.                       Font: 文泉驿等宽微米黑 10
       `$$b.                     CPU: Intel Core i5-3320M @ 4x 3.3GHz [54.0°C]
         `Y$$b.                  GPU: intel
            `"Y$b._              RAM: 5093MiB / 15741MiB
                `""""

Ubuntu16.04 启动失败

+ main
++ id -u
+ '[' 0 -ne 0 ']'
+ setupUserGroup
+ '[' -n 29 ']'
+ groupmod -o -g 29 audio
+ '[' -n 44 ']'
+ groupmod -o -g 44 video
++ id -g user
+ '[' 10001 '!=' 1000 ']'
+ groupmod -o -g 10001 group
++ id -u user
+ '[' 10001 '!=' 1000 ']'
+ usermod -o -u 10001 user
+ chown user:group '/home/user/.wine/drive_c/users/user/Application Data' '/home/user/WeChat Files'
+ setupHostname
+ export HOSTNAME=DoChat
+ HOSTNAME=DoChat
+ echo DoChat
+ hostname DoChat
+ exec gosu user /entrypoint.sh
+ main
++ id -u
+ '[' 10001 -ne 0 ']'
+ startWechat
+ hello
++ cat /VERSION
+ VERSION=0.8.3
+ echo '[DoChat] 盒装微信 v0.8.3'
+ disableUpgrade
[DoChat] 盒装微信 v0.8.3
+ wine REG ADD 'HKEY_CURRENT_USER\Software\Tencent\WeChat' /v NeedUpdateType /t REG_DWORD /d 0 /f
+ echo 'FAIL: "reg add HKEY_CURRENT_USER\Software\Tencent\WeChat /v NeedUpdateType /d 0"'
FAIL: "reg add HKEY_CURRENT_USER\Software\Tencent\WeChat /v NeedUpdateType /d 0"
+ CONFIG_EX_INI_FILE='/home/user/.wine/drive_c/users/user/Application Data/Tencent/WeChat/All Users/config/configEx.ini'
+ '[' -e '/home/user/.wine/drive_c/users/user/Application Data/Tencent/WeChat/All Users/config/configEx.ini' ']'
+ setupFontDpi
+ DELETE_KEYS=('HKEY_CURRENT_USER\Control Panel\Desktop' 'HKEY_CURRENT_USER\Software\Wine\Fonts')
+ for key in "${DELETE_KEYS[@]}"
+ wine reg DELETE 'HKEY_CURRENT_USER\Control Panel\Desktop' /v LogPixels /f
+ true
+ for key in "${DELETE_KEYS[@]}"
+ wine reg DELETE 'HKEY_CURRENT_USER\Software\Wine\Fonts' /v LogPixels /f
+ true
+ wine reg ADD 'HKEY_LOCAL_MACHINE\System\CurrentControlSet\Hardware Profiles\Current\Software\Fonts' /v LogPixels /t REG_DWORD /d 120 /f

Ubuntu 19.10下无法正常启动

问题描述:
第一次成功启动了,但字体不正常,安装字体后还是未能解决,尝试删除映射目录后无法正常启动了

删除的目录:

-v "$HOME/DoChat/WeChat Files/":'/home/user/WeChat Files/' \
-v "$HOME/DoChat/Applcation Data":'/home/user/.wine/drive_c/users/user/Application Data/' \
-v /tmp/.X11-unix:/tmp/.X11-unix \

错误日志:

Using default tag: latest
latest: Pulling from zixia/wechat
Digest: sha256:0599e8b6688e17c40bed497d8c487e0f2e0eeb53a0abc001ede0e67c9d87d839
Status: Image is up to date for zixia/wechat:latest
docker.io/zixia/wechat:latest

🚀 Pulling the latest docker image done.
🚀 Starting DoChat /dɑɑˈtʃæt/ ...

+ main
++ id -u
+ '[' 0 -ne 0 ']'
+ setupUserGroup
+ '[' -n 29 ']'
+ groupmod -o -g 29 audio
+ '[' -n 44 ']'
+ groupmod -o -g 44 video
++ id -g user
+ '[' 1000 '!=' 1000 ']'
++ id -u user
+ '[' 1000 '!=' 1000 ']'
+ chown user:group '/home/user/.wine/drive_c/users/user/Application Data' '/home/user/WeChat Files'
+ setupHostname
+ export HOSTNAME=DoChat
+ HOSTNAME=DoChat
+ echo DoChat
+ hostname DoChat
+ exec gosu user /entrypoint.sh
+ main
++ id -u
+ '[' 1000 -ne 0 ']'
+ startWechat
+ hello
++ cat /VERSION
+ VERSION=0.7.0
+ echo '[DoChat] 盒装微信 v0.7.0'
+ disableUpgrade
[DoChat] 盒装微信 v0.7.0
+ wine REG ADD 'HKEY_CURRENT_USER\Software\Tencent\WeChat' /v NeedUpdateType /t REG_DWORD /d 0 /f
+ CONFIG_EX_INI_FILE='/home/user/.wine/drive_c/users/user/Application Data/Tencent/WeChat/All Users/config/configEx.ini'
+ '[' -e '/home/user/.wine/drive_c/users/user/Application Data/Tencent/WeChat/All Users/config/configEx.ini' ']'
+ setupFontDpi
+ DELETE_KEYS=('HKEY_CURRENT_USER\Control Panel\Desktop' 'HKEY_CURRENT_USER\Software\Wine\Fonts')
+ for key in "${DELETE_KEYS[@]}"
+ wine reg DELETE 'HKEY_CURRENT_USER\Control Panel\Desktop' /v LogPixels /f
+ true
+ for key in "${DELETE_KEYS[@]}"
+ wine reg DELETE 'HKEY_CURRENT_USER\Software\Wine\Fonts' /v LogPixels /f
+ wine reg ADD 'HKEY_LOCAL_MACHINE\System\CurrentControlSet\Hardware Profiles\Current\Software\Fonts' /v LogPixels /t REG_DWORD /d 120 /f
+ '[' -n true ']'
+ wine reg query 'HKEY_CURRENT_USER\Software\Tencent\WeChat'

HKEY_CURRENT_USER\Software\Tencent\WeChat
    NeedUpdateType    REG_DWORD    0x0

+ true
+ echo '[DoChat] Starting...'
+ '[' -n true ']'
+ unset WINEDEBUG
[DoChat] Starting...
+ wine 'C:\Program Files\Tencent\WeChat\WeChat.exe'
0031:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
0031:err:winediag:nodrv_CreateWindow Make sure that your X server is running and that $DISPLAY is set correctly.
003f:err:dbghelp:pe_load_dbg_file Couldn't find .DBG file "dll\\riched20.dbg" (L"C:\\Program Files\\Tencent\\WeChat")
003f:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
003f:err:winediag:nodrv_CreateWindow Make sure that your X server is running and that $DISPLAY is set correctly.

Hangs on openSUSE Tumbleweed

Ran the following commands on openSUSE Tumbleweed and got the wechat window.

xhost +
curl -sL https://raw.githubusercontent.com/huan/docker-wechat/master/dochat.sh | DOCHAT_DEBUG=true  bash

image

But after clicking the button, the window disappeared and the container hanged after logging the following messages.

0043:err:winediag:SECUR32_initNTLMSP ntlm_auth was not found or is outdated. Make sure that ntlm_auth >= 3.0.25 is in your path. Usually, you can find it in the winbind package of your distribution.
[0302/071923:INFO:exception_record.cc(518)] [QB]Process ID: 49 Type: 1
[0302/071923:ERROR:network_change_notifier_win.cc(156)] WSALookupServiceBegin failed with: 8

Re-runing the command generates the same messages and the window does not show up anymore.

Permanent Storage for WeChat PC Login Data Information

Because we are using our docker container as a stateless runner by adding the --rm arg, so we will lose data in the container every time we exit WeChat PC.

Currently, we have one volume: /WeChatFiles/ to store local files.

We still need another volume to store the login data.

To be implemented.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.