解决Arch Wayland下的各种问题?
2025-05-12
Firefox (Flatpak)不显示“最小化”和“最大化”按钮?
解决方案1:
原文
i was having the same problem with flatpak firefox, and this fixed it for me:
1- install xdg-desktop-portal-gtk.
2- create the file ~/.config/xdg-desktop-portal/portals.conf with the following content:
[preferred]
default=kde
org.freedesktop.impl.portal.Settings=kde;gtk;
-
安装 xdg-desktop-portal-gtk 包
-
编辑
~/.config/xdg-desktop-portal/portals.conf
文件。(若没有文件则创建文件,没有目录则创建目录)编辑文件内容:
[preferred] default=kde org.freedesktop.impl.portal.Settings=kde;gtk;
之后,重启系统。
解决方案2:
原文:
Pretty sure KDE should already do this by default if you have the kde-gtk-config installed, but if that's not the case then you'll need to add gtk-decoration-layout=icon:minimize,maximize,close to ~/.config/gtk-3.0/settings.ini file, and you probably also need to run gsettings set org.gnome.desktop.wm.preferences button-layout 'icon:minimize,maximize,close' in a terminal (not sure which one is meant to be the right one but I remember the settings.ini approach working originally, then at some point I also had to use the gsettings approach to make it work).
解决方案3:
只要在flatseal里把firefox的wayland显示关掉,强迫其使用x11,即xwayland即可正常。但这样会导致webgl失效,导致玩不了游戏。
Fcitx5在firefox中不显示皮肤?
解决方案:
请确保你的环境变量里没有以下两个变量:
GTK_IM_MODULE=fcitx
QT_IM_MODULE=fcitx
你可以通过简单的命令:
echo $GTK_IM_MODULE
echo $QT_IM_MODULE
来实现。确保上述两条命令中没有任何输出。假设有fcitx之类的输出,则说明你错误的设置了上述环境变量。
请确保上述两条环境变量不存在。
WPS Office无法使用Fcitx5输入?
解决方案:
来源:https://wszqkzqk.github.io/2024/03/09/WPS-Fcitx5/
只要确保你的WPS的环境变量里有如下变量即可:
XMODIFIERS="@im=fcitx" GTK_IM_MODULE="fcitx" QT_IM_MODULE="fcitx" SDL_IM_MODULE=fcitx GLFW_IM_MODULE=ibus
我使用KDE, 我在 系统->菜单编辑器->
中找到了WPS有关的所有条目,将上述内容粘贴到“环境变量”栏中,保存,然后问题就解决了。很方便。