360 Secure SkillHub
360 安全技能中心

Steam Icon Fixer

该 Skill 在 Linux 桌面通过 Python 脚本扫描本地 Steam 启动器的 .desktop 元数据来发现 Steam app ID,并把用户提供的图片按 steam_icon_<id>.png 命名安装到 hicolor 图标主题中,必要时刷新图标缓存。它需要本地文件系统访问,不包含网络下载或图标生成。

lunarmoon26
lunarmoon26
热度 36.48
最近更新 2026-05-11 17:39:34
分类:自动化依赖:代码执行 / 读写文件应用场景:自动化脚本 / 工作流 / 文件转换

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add steam-icon-fixer
Metadata
name
steam-icon-fixer
description
Fix missing or generic Steam game desktop icons on Linux by finding the Steam app ID from local launchers and installing replacement artwork into the user's icon theme. Use when Steam-created desktop launchers show blank or generic icons, when the app ID must be discovered from local launchers, or when a downloaded image needs to be installed in Steam's icon naming scheme.

Steam Icon Fixer

Use this skill to repair Steam launcher icons on Linux desktops.

Core workflow

  1. Prefer the user's explicit inputs when available.
    • downloaded image path
    • game name
    • Steam app ID
    • specific .desktop file
  2. Otherwise infer the common local locations.
    • launcher dir: ${XDG_DATA_HOME:-~/.local/share}/applications
    • icon dir: ${XDG_DATA_HOME:-~/.local/share}/icons/hicolor
  3. Discover the app ID from the launcher metadata.
    • look for Icon=steam_icon_<id>
    • look for Exec=...steam://rungameid/<id>
    • if needed, search local launchers by game name
  4. Run the bundled installer script.
  5. Refresh the icon cache if the script does not do it automatically.

Commands

Scan local Steam launchers for missing icons:

python3 scripts/steam_icon_fixer.py scan

Install an image with an explicit app ID:

python3 scripts/steam_icon_fixer.py install \
  --image /path/to/image.png \
  --app-id 1086940

Install an image by matching a game name:

python3 scripts/steam_icon_fixer.py install \
  --image /path/to/image.png \
  --game "Baldur's Gate 3"

Install using a specific desktop file:

python3 scripts/steam_icon_fixer.py install \
  --image /path/to/image.png \
  --desktop-file ~/.local/share/applications/Baldur's\ Gate\ 3.desktop

Use explicit directories when the machine is nonstandard:

python3 scripts/steam_icon_fixer.py install \
  --image /path/to/image.png \
  --game "DOOM: The Dark Ages" \
  --desktop-dir /custom/applications \
  --icons-dir /custom/icons/hicolor

Bundled resources

  • scripts/steam_icon_fixer.py: deterministic installer/scanner for Steam launcher icons.
  • references/: add launcher or icon-theme notes here if the workflow needs machine-specific guidance.

Notes

  • The script should generate standard icon sizes and keep Steam's steam_icon_<appid>.png naming.
  • For .ico inputs, Pillow may be required.
  • If GNOME or another dock keeps the old icon, unpin and re-pin the launcher after the cache refresh.