红尘阁 發表於 2023-10-6 00:00:00

Ubuntu系统中QQ不能输入中文怎么办?

<p style='margin: 0px; padding: 5px 0px; outline: none; font-size: 14px; line-height: 30px; font-family: tahoma, arial, "Microsoft YaHei";'>
        安装完wine,安装完QQ,解决完登录问题(Ubuntu通过wine安装QQ无法输入账号怎么办? ),但是发现聊天的时候,无法输入中文,那是因为<span><strong>Ubuntu一般使用的是fcitx输入,QQ使用系统默认ibus</strong></span>,那么需要通过脚本来配置输入方式</p>
<p style='margin: 0px; padding: 5px 0px; outline: none; font-size: 14px; line-height: 30px; font-family: tahoma, arial, "Microsoft YaHei";'>
        1、在home目录,建立一个文件夹,文件夹命名为<strong>wine</strong>,PS:这个不是强制性,只是有个目录,后期方便修改维护之类的</p>
<p align="center" style='margin: 0px; padding: 5px 0px; outline: none; font-size: 14px; line-height: 30px; font-family: tahoma, arial, "Microsoft YaHei";'>
        <img style="max-width:100%!important;height:auto!important;"title="Ubuntu系统中QQ不能输入中文怎么办?" alt="Ubuntu系统中QQ不能输入中文怎么办?" src="https://zhuji.jb51.net/uploads/img/202305/4b0ec4a2765d168d71580e43d23f23b4.jpg"></p>
<p style='margin: 0px; padding: 5px 0px; outline: none; font-size: 14px; line-height: 30px; font-family: tahoma, arial, "Microsoft YaHei";'>
        2、在wine目录里面,右击空白地区,打开终端,输入:<span><strong>gedit qq.sh</strong></span>,或者直接右击创建一个空白文件,命名为:<strong>qq.sh</strong>,一会需要修改这个文件</p>
<p align="center" style='margin: 0px; padding: 5px 0px; outline: none; font-size: 14px; line-height: 30px; font-family: tahoma, arial, "Microsoft YaHei";'>
        <img style="max-width:100%!important;height:auto!important;"title="Ubuntu系统中QQ不能输入中文怎么办?" alt="Ubuntu系统中QQ不能输入中文怎么办?" src="https://zhuji.jb51.net/uploads/img/202305/1a35e8facca4a555d63d435f2438b942.jpg"></p>
<p style='margin: 0px; padding: 5px 0px; outline: none; font-size: 14px; line-height: 30px; font-family: tahoma, arial, "Microsoft YaHei";'>
        3、把下面这段复制进文件里面</p>
<p style='margin: 0px; padding: 5px 0px; outline: none; font-size: 14px; line-height: 30px; font-family: tahoma, arial, "Microsoft YaHei";'>
        <strong>#!/bin/shenv locale=zh_CNexport XIM="fcitx"export XMODIFIERS="@im=fcitx"export GTK_IM_MODULE="fcitx"export QT_IM_MODULE="fcitx"wine /home/du/.wine/drive_c/Program\ Files\ \(x86\)/Tencent/QQ/Bin/QQ.exe</strong></p>
<p align="center" style='margin: 0px; padding: 5px 0px; outline: none; font-size: 14px; line-height: 30px; font-family: tahoma, arial, "Microsoft YaHei";'>
        <img style="max-width:100%!important;height:auto!important;"title="Ubuntu系统中QQ不能输入中文怎么办?" alt="Ubuntu系统中QQ不能输入中文怎么办?" src="https://zhuji.jb51.net/uploads/img/202305/5669e6c77c1dba1e44c145eb86209061.jpg"></p>
<p style='margin: 0px; padding: 5px 0px; outline: none; font-size: 14px; line-height: 30px; font-family: tahoma, arial, "Microsoft YaHei";'>
        4、最后面一行,修改成自己的QQ路径,因为.wine是隐藏的,无法直接看到,可以按<span><strong>Ctrl+H</strong></span>可以显示隐藏文件夹</p>
<p align="center" style='margin: 0px; padding: 5px 0px; outline: none; font-size: 14px; line-height: 30px; font-family: tahoma, arial, "Microsoft YaHei";'>
        <img style="max-width:100%!important;height:auto!important;"title="Ubuntu系统中QQ不能输入中文怎么办?" alt="Ubuntu系统中QQ不能输入中文怎么办?" src="https://zhuji.jb51.net/uploads/img/202305/8badfcad77e62fc2df1698fbbcf1134b.jpg"></p>
<p style='margin: 0px; padding: 5px 0px; outline: none; font-size: 14px; line-height: 30px; font-family: tahoma, arial, "Microsoft YaHei";'>
        5、修改完成之后,我们可以测试,脚本是否可以正常使用了,在终端输入:<span><strong>sh qq.sh</strong></span>,如果提示没有找到文件,<strong>从新在wine目录打开终端就可以了,</strong>或者可以在sh之后,直接把文件拖进终端,<strong>会自动添加路径</strong></p>
<p align="center" style='margin: 0px; padding: 5px 0px; outline: none; font-size: 14px; line-height: 30px; font-family: tahoma, arial, "Microsoft YaHei";'>
        <img style="max-width:100%!important;height:auto!important;"title="Ubuntu系统中QQ不能输入中文怎么办?" alt="Ubuntu系统中QQ不能输入中文怎么办?" src="https://zhuji.jb51.net/uploads/img/202305/2dc725c89fbf41b61c98895c5ed66c73.jpg"></p>
<p style='margin: 0px; padding: 5px 0px; outline: none; font-size: 14px; line-height: 30px; font-family: tahoma, arial, "Microsoft YaHei";'>
        6、如果正常启动程序,说明脚本完成了,如果不行,回头检查下路径</p>
<p align="center" style='margin: 0px; padding: 5px 0px; outline: none; font-size: 14px; line-height: 30px; font-family: tahoma, arial, "Microsoft YaHei";'>
        <img style="max-width:100%!important;height:auto!important;"title="Ubuntu系统中QQ不能输入中文怎么办?" alt="Ubuntu系统中QQ不能输入中文怎么办?" src="https://zhuji.jb51.net/uploads/img/202305/804dccd7582491f77d530f22c5222575.jpg"></p>
<p style='margin: 0px; padding: 5px 0px; outline: none; font-size: 14px; line-height: 30px; font-family: tahoma, arial, "Microsoft YaHei";'>
        7、到这里,可能都会有一个问题,以后启动程序是不是都得这么麻烦?如果需要像win那样在桌面双击打开,可以添加一个快捷方式,可以参考下面的经验</p>
頁: [1]
查看完整版本: Ubuntu系统中QQ不能输入中文怎么办?