![桌面应用程序在 dock/启动器上出现错误图标](https://linux22.com/image/1153911/%E6%A1%8C%E9%9D%A2%E5%BA%94%E7%94%A8%E7%A8%8B%E5%BA%8F%E5%9C%A8%20dock%2F%E5%90%AF%E5%8A%A8%E5%99%A8%E4%B8%8A%E5%87%BA%E7%8E%B0%E9%94%99%E8%AF%AF%E5%9B%BE%E6%A0%87.png)
Ubuntu 17.10,gonme 3.26.2(xorg)
我创建了如下所示的桌面应用程序。它以正确的图标显示在桌面上。当我启动该应用程序时,它会出现在启动器/停靠栏中 - 这是预期的 - 但它使用的是 Firefox 图标,而不是下面显示的桌面文件中指定的图标。
这是为什么?如何让它在启动时使用启动器/Dock 中的正确图标?
[Desktop Entry]
Version=1.0
Name=Firefox Web Browser
Comment=Browse the World Wide Web
GenericName=Web Browser
Keywords=Internet;WWW;Browser;Web;Explorer
Exec=firefox -no-remote -P ZohoCalendar --new-window --class="ZohoCalendar" %u https://www.zoho.com/calendar/signin.html
Terminal=false
X-MultipleArgs=false
Type=Application
Icon=/home/main1/applications/images/ZohoCalendar.jpg
Categories=GNOME;GTK;Network;WebBrowser;
MimeType=text/html;text/xml;application/xhtml+xml;application/xml;application/rss+xml;application/rdf+xml;image/gif;image/jpeg;image/png;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/ftp;x-scheme-handler/chrome;video/webm;application/x-xpinstall;
StartupNotify=true
StartupWMClass=ZohoCalendar
Actions=NewWindow;NewPrivateWindow;
Name[en_US]=Zoho Calendar
GenericName[en_US]=Zoho Calendar
Comment[en_US]=Zoho Calendar
[Desktop Action NewWindow]
Name=Open a New Window
Exec=firefox -new-window
OnlyShowIn=Unity;
[Desktop Action NewPrivateWindow]
Name=Open a New Private Window
Exec=firefox -private-window
OnlyShowIn=Unity;