docker-wechat icon indicating copy to clipboard operation
docker-wechat copied to clipboard

Access to "Allow the window manager to decorate the windows." wine setting

Open dd45e640b42e6da7da96faee3996ef7c opened this issue 5 years ago • 2 comments

It would be nice to have access to that parameter in the wine settings via env var like for the DPI settings.

Right now it breaks the window decorations of other windows if you tab them together (Fluxbox).

For the RegKey have a look here. https://wiki.winehq.org/Useful_Registry_Keys

I have no clue about how to build the docker image, otherwise i would insert it by myself. Sorry.

It seems that in order to "Allow the window manager to decorate the windows." we need to modify the regedit for windows?

Could you share the command of doing this with regedit command, then I'll try to think about how to insert it with parameters like DOCHAT_DPI.

huan avatar May 26 '20 14:05 huan

https://github.com/huan/docker-wechat/blob/master/container_root/dochat/regedit.sh

cat <<_EOF_ > "$tmpRegFile"
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Tencent\WeChat]
"ChannelId"=dword:000003e8
"Version"=dword:62070155
"InstallPath"="C:\\Program Files\\Tencent\\WeChat"
"LANG_ID"=dword:00000009
"CrashVersion"=dword:62070155
"CrashCnt"=dword:00000000
"NeedUpdateType"=dword:00000000
"UpdateFailCnt"="1644626309;3"
_EOF_

#
# Setup WeChat in Windows Registry
#
wine regedit.exe /s "$tmpRegFile"

i think it will follow this schema of inserting reg keys. Create file, load file. or even deliver the file in the container root and switch on the env var the user passes to load/not load it.

[HKCU\Software\Wine\X11 Driver]
"Decorated"="n"

i can only find how to turn it of "n", i think "y" might turn the feature on (https://wiki.winehq.org/Useful_Registry_Keys)

i am not sure if these changes are persistent between wechat starts or not...