我有一个预装了 LibreOffice 的 Ubuntu 17.10 安装。当我打开 LibreOffice Writer 时,它会在左侧的任务栏(即应用程序停靠栏)中显示一个空白图标(第 1 张屏幕截图)。如果我将应用程序从全屏应用程序启动器拖放到停靠栏(即添加到收藏夹)并启动应用程序,它仍然会打开一个空白图标(第 2 张屏幕截图)。事实上,任何 LibreOffice 应用程序都会打开相同的空白图标,无论是 Writer、Impress 还是 Calc。LibreOffice 套件本身也会在应用程序启动器中显示为一个空白图标(第 3 张屏幕截图)。
这不会以任何方式、形式影响应用程序的性能,但这个缺陷让我非常烦恼,而且当你同时打开多个 LibreOffice 应用程序时,它也使得区分它们变得更加困难。
希望有人能提出一些技巧来解决这个问题!谢谢
编辑
/usr/share/applications/libreoffice-writer.desktop
内容:
[Desktop Entry]
Version=1.0
Terminal=false
Icon=libreoffice-writer
Type=Application
Categories=Office;WordProcessor;
Exec=libreoffice --writer %U
MimeType=application/vnd.oasis.opendocument.text;application/vnd.oasis.opendocument.text-template;application/vnd.oasis.opendocument.text-web;application/vnd.oasis.opendocument.text-master;application/vnd.oasis.opendocument.text-master-template;application/vnd.sun.xml.writer;application/vnd.sun.xml.writer.template;application/vnd.sun.xml.writer.global;application/msword;application/vnd.ms-word;application/x-doc;application/x-hwp;application/rtf;text/rtf;application/vnd.wordperfect;application/wordperfect;application/vnd.lotus-wordpro;application/vnd.openxmlformats-officedocument.wordprocessingml.document;application/vnd.ms-word.document.macroenabled.12;application/vnd.openxmlformats-officedocument.wordprocessingml.template;application/vnd.ms-word.template.macroenabled.12;application/vnd.ms-works;application/vnd.stardivision.writer-global;application/x-extension-txt;application/x-t602;text/plain;application/vnd.oasis.opendocument.text-flat-xml;application/x-fictionbook+xml;application/macwriteii;application/x-aportisdoc;application/prs.plucker;application/vnd.palm;application/clarisworks;application/x-sony-bbeb;application/x-abiword;application/x-iwork-pages-sffpages;application/x-mswrite;application/x-starwriter;
Name=LibreOffice Writer
GenericName=Word Processor
# More translations here and what not...
StartupNotify=true
X-GIO-NoFuse=true
Keywords=Text;Letter;Fax;Document;OpenDocument Text;Microsoft Word;Microsoft Works;Lotus WordPro;OpenOffice Writer;CV;odt;doc;docx;rtf;
InitialPreference=5
StartupWMClass=libreoffice-writer
X-KDE-Protocols=file,http,ftp,webdav
Actions=NewDocument;
[Desktop Action NewDocument]
Name=New Document
# Yet more translations below...
Exec=libreoffice --writer