Giter VIP home page Giter VIP logo

docker-wechat's Introduction

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

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

Usage Powered Ubuntu

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

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

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 support confirmed (#16)
    3. Ubuntu(19.04/18.10/18.04) should be able to support
    4. Other Linux distributions: might be able to support
  2. Docker (run sudo apt update && apt install docker.io to install Docker for Ubuntu users)

Environment Variables

DOCHAT_DPI

DPI Scale Factors for graphic screen resolution.

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

Default: 120

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

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 \
  \
  -e DISPLAY="$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.

Known Issues

  • 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.

FAQ

1 System Tray Icon with Gnome Desktop

Install Gnome Extension: Top Icons Plus Git

2 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 +

Links

History

master

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. 基于深度操作系统的微信 docker 镜像 by @bestwu
  2. DoChat logo designed by my friend Ruoxin SONG.

Author

Huan LI (李卓桓) [email protected]

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

huan avatar mengzyou avatar

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.