UBuntu问题解决-微信使用不正常(一)

问题1:微信出现黑色框

在这里插入图片描述

解决方法

先安装xdotool,创建runrun.sh文件,把下面文件内容编辑到runrun.sh,设置权限
$ sudo apt install xdotool
$ sudo gedit /opt/deepinwine/apps/Deepin-WeChat/runrun.sh
$ sudo chmod +x /opt/deepinwine/apps/Deepin-WeChat/runrun.sh

把下面的内容复制到runrun.sh

#!/bin/bash

"/opt/deepinwine/apps/Deepin-WeChat/run.sh">/dev/null 2>&1

start_succ=false

for i in {1..5}
do
	xdotool search --onlyvisible --classname "wechat.exe"
	if [ $? == 0 ]
	then
		start_succ=true
		break
	fi
	sleep 1
done

if [ $start_succ == false ]
then
	exit 1
fi

windowclose=false

while :
do
	retval=$(xdotool search --onlyvisible --classname "wechat.exe")
	
	if [ $? != 0 ]
	then
		exit 0
	fi
	
	login=true
	
	for id in $retval
	do
		windowname=$(xdotool getwindowname $id)
		if [ "$windowname" == "Log In" ]
		then
			login=false
		fi
		
		if [ $windowclose == true ] && ([ "$windowname" == "" ] || [ "$windowname" == "ChatContactMenu" ])
		then
			xdotool windowclose $id
		fi
	done
	
	if [ $windowclose == true ]
	then
		exit 0
	fi
	
	if [ $login == true ]
	then
		windowclose=true
	fi
	
	sleep 0.5
done
最后修改desktop文件
$ sudo gedit /usr/share/applications/deepin.com.wechat.desktop
找到Exec那一行,替换为
Exec="/opt/deepinwine/apps/Deepin-WeChat/runrun.sh"

https://github.com/wszqkzqk/deepin-wine-ubuntu/issues/72#issuecomment

问题2:微信图片无法发送

# 安装这个库即可解决
$ sudo apt install libjpeg62:i386
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值