Skip to content

Comments

Add kwriteconfig6 and XCURSOR environment args from SteamOS#2

Open
KyleGospo wants to merge 2 commits intomainfrom
cursor-fix
Open

Add kwriteconfig6 and XCURSOR environment args from SteamOS#2
KyleGospo wants to merge 2 commits intomainfrom
cursor-fix

Conversation

@KyleGospo
Copy link
Member

@KyleGospo KyleGospo commented Feb 1, 2026

Fixes issues with the cursor while using Steam under gamescope, especially on systems shipping KDE.


if command -v kwriteconfig6 >/dev/null; then
# Chromium (and therefore Steam) ignore XCursor and use only the GTK config
kwriteconfig6 --file gtk-3.0/settings.ini --group Settings --key gtk-cursor-theme-name steam
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we check this with grep then write only if the key isn't what we expect? Writing stuff every time we open up the session seems odd

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like a good idea, probably need to handle this differently when kwrite isn't present too.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like a good idea, probably need to handle this differently when kwrite isn't present too.

Good point. We will need to sanitize for DE specifics.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could desktop-file-utils or a similar utility be used here? I tihnk it also parses ini files............??

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

awk and sed are fairly ubiquitous if you're cool with regex

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants