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

[PROBLEM] Does not work on OpenSuse Tumbleweed #150

Closed
brunommpreto opened this issue Nov 4, 2021 · 6 comments
Closed

[PROBLEM] Does not work on OpenSuse Tumbleweed #150

brunommpreto opened this issue Nov 4, 2021 · 6 comments
Labels
question Further information is requested

Comments

@brunommpreto
Copy link
Contributor

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”: 权限不够"

@bo-wu
Copy link

bo-wu commented Nov 9, 2021

Same result on Debian 11.

BTW, I installed dochat by gitee

@huan huan added the question Further information is requested label Nov 9, 2021
@bo-wu
Copy link

bo-wu commented Nov 9, 2021

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?

@huan
Copy link
Owner

huan commented Nov 9, 2021

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

brunommpreto added a commit to brunommpreto/docker-wechat that referenced this issue Nov 9, 2021
OpenSUSE Tumbleweed support confirmed with configurations to address the issue huan#150
@brunommpreto
Copy link
Contributor Author

🚀 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/

huan pushed a commit that referenced this issue Nov 9, 2021
* Update README.md

OpenSUSE Tumbleweed support confirmed with configurations to address the issue #150

* Update README.md
@William8915
Copy link

William8915 commented Apr 26, 2022

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.

@huan
Copy link
Owner

huan commented Apr 27, 2022

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!

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

No branches or pull requests

4 participants