在 Cinnamon 或 Gnome3 中设置 Wine 应用程序图标

nig*_*ler 8 gnome wine cinnamon

在此处输入图片说明

在上面的屏幕截图中,您可以看到我正在使用 Wine 应用程序、Nemo 文件浏览器和 Firefox,但是,我也想为此 Wine 应用程序使用特定图标!准确地说,我使用的是 PDF Xchange 查看器,我也想在 Cinnamon 中使用它的原生 Windows 图标!

在此处输入图片说明

我怎样才能做到这一点?

Jos*_*osh 2

  1. 将图标创建为 png 文件

  2. 复制应用程序文件

    /usr/share/applications

  3. 在文本编辑器中打开它

  4. 定制它。

你也可以复制我的模板:

[Desktop Entry]
Name=Your App
Comment=Comments shown as tooltip
Exec= wine /path/to/executable
Icon=/path/to/icon.png
StartupNotify=true
Terminal=false
Type=Application
MimeType=text/plain; 
Categories=Wine;Applications;
Run Code Online (Sandbox Code Playgroud)

提出:

您的图标应放置在:/usr/share/icons/ownicons

创建此目录

sudo mkdir /usr/share/myicons/
sudo chown yourusername:yourusername /usr/share/myicons/
Run Code Online (Sandbox Code Playgroud)

有关详细信息,请参阅Gnome 桌面入门规范。


小智 2

我有同样的问题,我创建了新目录,并放置了桌面文件,但是 Ubuntu 13.10 中的 Cinnamon 仍然显示愚蠢的 Windows 徽标,我在其他论坛中搜索,但这一个最接近我的问题。

我将向您展示我的 Microsoft Windows 桌面文件

[Desktop Entry]
Version=1.0
Type=Application
Name=Microsoft Word 2010
Comment=
Icon=word.png
Exec=env WINEPREFIX="/home/larry/.PlayOnLinux//wineprefix/Office2010" wine C:\\\\windows\\\\command\\\\start.exe /Unix /home/larry/.PlayOnLinux//wineprefix/Office2010/dosdevices/c:/users/larry/Start\\ Menu/Programs/Microsoft\\ Office/Microsoft\\ Word\\ 2010.lnk
NoDisplay=false
Categories=wine-Programs-Microsoft Office;
StartupNotify=true
Terminal=false
StartupWMClass=WINWORD.EXE
Encoding=UTF-8
Run Code Online (Sandbox Code Playgroud)