this post was submitted on 07 Mar 2026
34 points (97.2% liked)
Linux Gaming
25297 readers
70 users here now
Discussions and news about gaming on the GNU/Linux family of operating systems (including the Steam Deck). Potentially a $HOME away from home for disgruntled /r/linux_gaming denizens of the redditarian demesne.
This page can be subscribed to via RSS.
Original /r/linux_gaming pengwing by uoou.
No memes/shitposts/low-effort posts, please.
Resources
Help:
- ProtonDB
- Are We Anticheat Yet?
- r/linux_gaming FAQ
- Fork of an earlier version of the above
- PCGamingWiki
- LibreGameWiki
Launchers/Game Library Managers:
General:
Discord:
IRC:
Matrix:
Telegram:
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
If you don't want to do it manually, make a script to do it. :) Create a text file named something like
fix-icon.sh, put it somewhere that's on your $PATH like /usr/local/bin (with sudo) or ~/bin (if that's on your path):Then
chmod u+x /path/to/fix-icon.shand dofix-icon.sh /path/to/whatever.desktopShould do the trick in most cases. I used some advanced magic in some of the variables to make it hopefully not fail for you if it runs into weird issues, but it doesn't actually need to be that complicated usually I just wanted to make sure it could handle some weird formats pretty safely. You can easily loop it on all .desktop files in a path if you want:for DESKTOP_FILE in *.desktop; do fix-icon.sh "${DESKTOP_FILE}"; doneI love bash. :) python, coreutils, grep should be on pretty much any system by default. But you will need imagemagick, and icoutils installed for it to work.
Let me know if you have any trouble with it. I tested it on my system and it seems fine but I don't have any lutris desktop files so I can't test it properly. Good luck!