Arch linux i3wm运行腾讯QQ/TIM

当你运行在i3wm环境下时,运行deepin的QQ/TIM(pacman -S deepin.qq.com.office或deepin.qq.com.im)

打开软件时会出现闪退的现象,启动不了QQ/TIM。或直接在命令行里执行命令也启动不了程序,会出现以下提示:

X Error of failed request: BadWindow (invalid Window parameter)
Major opcode of failed request: 20 (X_GetProperty)
Resource id in failed request:
0x0 Serial number of failed request:
10 Current serial number in output stream: 10

解决方案

  1. yaourt -S gnome-settings-daemon
  2. 然后运行 /usr/lib/gsd-xsettings,或者后台运行 nohup /usr/lib/gsd-xsettings > /dev/null 2>&1 &
  3. 切换到对应目录 cd /opt/deepinwine/apps/Deepin-TIM 或者 /opt/deepinwine/apps/Deepin-QQ
  4. 运行 ./run.sh

完美解决!参见 github,然后可以将第二步添加到 i3 的启动项即可。(笔者直接在.bashrc文件里添加nohup /usr/lib/gsd-xsettings > /dev/null 2>&1 &)

中文问题
系统语言非中文时,中文全显示成方块,需要在 /opt/deepinwine/tools/run.sh 中将 WINE_CMD 那一行修改为

WINE_CMD=”LC_ALL=zh_CN.UTF-8 deepin-wine”

另外,在i3 config 文件里添加如下内容:

for_window [instance=”TIM.exe”] floating enable
for_window [instance=”TIM.exe”] border none