Bou*_*ffe 4 icons unity launcher icon-themes
当我用 Steam 启动“以撒的结合”时,一开始图标很好。
当弹出“准备启动 Isaac”关闭时,会出现第二个图标
然后当游戏启动时,第一个图标消失,我只得到“?” 图标。
如何更改启动的第二个程序的图标?
我已经填写~/.local/share/applications/The\ Binding\ of\ Isaac\ Rebirth.desktop了好图标
[Desktop Entry]
Name=The Binding of Isaac: Rebirth
Comment=Play this game on Steam
Exec=steam steam://rungameid/250900
Icon=steam_icon_250900
Terminal=false
Type=Application
Categories=Game;
Run Code Online (Sandbox Code Playgroud)
我在 Ubuntu 16.04
感谢帮助 :)
在某些情况下,窗口和启动器(Unity Launcher 中的 -icon)以某种方式没有相互连接。在您的情况下,原因可能是第一个(“弹出”)窗口,使启动器图标“假设”工作已完成。这通常发生在在 Steam 或 Wine 下运行的应用程序中。
怎么解决
xprop WM_CLASS+ Return。您的指针会变成一个大的 +。单击应用程序的窗口。终端将输出两个字符串,看起来像:"gnome-terminal-server", "Gnome-terminal"。选择其中一个(我主要使用小写字母)并将其添加到您的.desktop文件中:
[Desktop Entry]
Name=The Binding of Isaac: Rebirth
Comment=Play this game on Steam
Exec=steam steam://rungameid/250900
Icon=steam_icon_250900
Terminal=false
Type=Application
Categories=Game;
StartupWMClass=wmclass
Run Code Online (Sandbox Code Playgroud)
...wmclass您找到的小写字符串在哪里。可能您需要注销并重新登录,它应该可以工作。
| 归档时间: |
|
| 查看次数: |
1050 次 |
| 最近记录: |