Ubuntu 16.04自定义Oxygen光标仅桌面显示,应用内变为Debian默认光标求解决
Hey there, I’ve run into this exact cursor inconsistency issue before—custom themes working on the desktop but bailing out in apps like Firefox or Steam is super annoying. Let’s get your Oxygen cursor showing up everywhere with these steps:
1. Verify Oxygen Cursor Installation & Permissions
First, make sure the theme is properly installed and accessible. Check if it’s in the system-wide or user-specific icons folder:
- Run
ls -la /usr/share/icons/Oxygen(for system-wide install) - Or
ls -la ~/.local/share/icons/Oxygen(for user-only install)
If the folder doesn’t exist, reinstall the Oxygen cursor theme (you can grab it via sudo apt install oxygen-cursor-theme if you used apt). Also, ensure all files have read permissions—run sudo chmod -R a+r /usr/share/icons/Oxygen if needed.
2. Force GTK Apps (Firefox, etc.) to Use Oxygen
GTK apps often ignore system cursor settings unless explicitly told otherwise. Let’s edit the GTK config files:
- For GTK3 apps (most modern ones, including Firefox):
Create or edit~/.config/gtk-3.0/settings.iniand add:[Settings] gtk-cursor-theme-name=Oxygen gtk-cursor-theme-size=24 # Adjust to your preferred cursor size - For GTK4 apps (if you have any):
Do the same for~/.config/gtk-4.0/settings.iniwith the same content.
3. Fix Qt Apps & Steam
Qt apps (like some KDE tools) and Steam have their own quirks:
Qt Apps:
Install the Qt configuration tool:sudo apt install qt5ct qt6ct
Run qt5ct (for Qt5) or qt6ct (for Qt6), go to the Appearance tab, select Oxygen from the Cursor theme dropdown, and save changes.
Steam:
Steam sometimes uses its own runtime that overrides cursor settings. Fix this by modifying its launch command:
- Right-click the Steam icon in your app launcher → Properties
- In the Command field, add
env XCURSOR_THEME=Oxygenat the start, so it looks like:env XCURSOR_THEME=Oxygen steam %U - If you launch Steam via terminal, use:
env XCURSOR_THEME=Oxygen steam
4. Global X11/Wayland Cursor Setup
For Xorg Users:
Edit or create ~/.Xresources and add:
Xcursor.theme: Oxygen Xcursor.size: 24
Run xrdb ~/.Xresources to apply changes immediately, or log out and back in.
For Wayland Users:
Create a file ~/.config/environment.d/cursor.conf with:
XCURSOR_THEME=Oxygen XCURSOR_SIZE=24
Log out and back in to apply the environment variable.
5. Test It Out
Finally, log out of your session (or restart your PC) and check Firefox, Steam, and other apps—your Oxygen cursor should now show up consistently everywhere!
内容的提问来源于stack exchange,提问作者Psionikal

