[PROBLEM] Does not work on OpenSuse Tumbleweed
brunommpreto opened this issue · 6 comments
Docker Host
NAME="openSUSE Tumbleweed"
# VERSION="20211102"
ID="opensuse-tumbleweed"
ID_LIKE="opensuse suse"
VERSION_ID="20211102"
PRETTY_NAME="openSUSE Tumbleweed"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:opensuse:tumbleweed:20211102"
BUG_REPORT_URL="https://bugs.opensuse.org"
HOME_URL="https://www.opensuse.org/"
DOCUMENTATION_URL="https://en.opensuse.org/Portal:Tumbleweed"
LOGO="distributor-logo-Tumbleweed"
Docker Version
Client:
Version: 20.10.9-ce
API version: 1.41
Go version: go1.16.9
Git commit: 79ea9d308018
Built: Wed Oct 6 00:00:00 2021
OS/Arch: linux/amd64
Context: default
Experimental: true
Server:
Engine:
Version: 20.10.9-ce
API version: 1.41 (minimum version 1.12)
Go version: go1.16.9
Git commit: 79ea9d308018
Built: Wed Oct 6 00:00:00 2021
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: v1.4.11
GitCommit: 5b46e404f6b9f661a205e28d59c982d3634148f8
runc:
Version: 1.0.2
GitCommit:
docker-init:
Version: 0.1.6_catatonit
GitCommit:
Docker Group Info
cat /etc/group | grep $USER
docker:x:459:brunommpreto
Docker Images
REPOSITORY TAG IMAGE ID CREATED SIZE
zixia/wechat 3.3.0.115 eb4d8494e3d9 3 weeks ago 3.73GB
Docker Containers
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
Start Logs
🚀 Starting DoChat /dɑɑˈtʃæt/ ...
+ main
++ id -u
+ '[' 1000 -ne 0 ']'
+ startWechat
+ hello
++ cat /VERSION
+ VERSION=0.14.4
+ echo '[DoChat] 盒装微信 v0.14.4'
+ setupFontDpi
[DoChat] 盒装微信 v0.14.4
+ 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
+ /dochat/patch-hosts.sh
+ /dochat/disable-upgrade.sh
Disabling patch for /home/user/.wine/drive_c/users/user/AppData/Roaming/Tencent/WeChat ...
Disabling patch for /home/user/.wine/drive_c/users/user/Application Data/Tencent/WeChat ...
mkdir: 无法创建目录 “/home/user/.wine/drive_c/users/user/Application Data/Tencent”: 权限不够
"mkdir: 无法创建目录 “/home/user/.wine/drive_c/users/user/Application Data/Tencent”: 权限不够"
Same result on Debian 11.
BTW, I installed dochat by gitee
Same result on Debian 11.
BTW, I installed dochat by gitee
Sorry, my bad.
I didnot find out the DoChat directory under $Home. After chage the own and group. It works!
sudo chown -R $(whoami) $HOME/DoChat/
Thanks a lot!
BTW, is there any way to change the font?
@bo-wu Glad to know that you make it work!
If you know any way to change the font, please post it here and I'd like to accept a PR to add it to the README.
🚀 Starting DoChat /dɑɑˈtʃæt/ ...
+ main
++ id -u
+ '[' 1000 -ne 0 ']'
+ startWechat
+ hello
++ cat /VERSION
[DoChat] 盒装微信 v0.14.4
+ VERSION=0.14.4
+ echo '[DoChat] 盒装微信 v0.14.4'
+ 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
+ /dochat/patch-hosts.sh
+ /dochat/disable-upgrade.sh
Disabling patch for /home/user/.wine/drive_c/users/user/AppData/Roaming/Tencent/WeChat ...
Disabling patch for /home/user/.wine/drive_c/users/user/Application Data/Tencent/WeChat ...
+ '[' -n true ']'
+ unset WINEDEBUG
+ wine reg query 'HKEY_CURRENT_USER\Software\Tencent\WeChat'
HKEY_CURRENT_USER\Software\Tencent\WeChat
NeedUpdateType REG_DWORD 0x0
+ echo '[DoChat] DISPLAY=:0'
[DoChat] DISPLAY=:0
++ head -1 /home/VERSION.WeChat
[DoChat] WeChat 3.3.0.115
[DoChat] Starting...
+ VERSION=3.3.0.115
+ echo '[DoChat] WeChat 3.3.0.115'
+ true
+ echo '[DoChat] Starting...'
+ '[' -n true ']'
+ wine 'C:\Program Files\Tencent\WeChat\WeChat.exe'
@bo-wu The command works like a charm. Thanks.
I had to do the following for it to work:
$ xhost +; sudo chown -R $USER $HOME/DoChat/
I still have the permission denied issue after executing sudo chown -R $(whoami) $HOME/DoChat/
. For me the uid is 1001 and the gid is 1000 but the main program seems to insist on using 1000 as the uid. The UID parameter in dochat.sh
fails to work for some reason and I have to sudo chown -R 1000:1000 $HOME/DoChat/; xhost +
for it to launch normally.
By the way I'm using Fedora 34, you may add that to your list of OS for which support has been confirmed.
By the way I'm using Fedora 34, you may add that to your list of OS for which support has been confirmed.
Thanks for the report!
Could you please help the project to create a PR for adding that information to the README? Appreciate it!