![13.04 中编译的程序在启动栏中缺少图标(默认为问号)](https://linux22.com/image/968336/13.04%20%E4%B8%AD%E7%BC%96%E8%AF%91%E7%9A%84%E7%A8%8B%E5%BA%8F%E5%9C%A8%E5%90%AF%E5%8A%A8%E6%A0%8F%E4%B8%AD%E7%BC%BA%E5%B0%91%E5%9B%BE%E6%A0%87%EF%BC%88%E9%BB%98%E8%AE%A4%E4%B8%BA%E9%97%AE%E5%8F%B7%EF%BC%89.png)
我使用 Wine 和 Minitube 的自定义编译版本(没有实际更改源代码,只是编译而不是从软件中心安装),但是由于某种原因,它们的图标显示为灰色问号而不是标准图标文件。我很确定这不是安装问题。我附上了我的 minitube 安装日志,希望对您有帮助:
gem@HAL9000:~/Downloads/minitube$ sudo make install
install -m 755 -p "build/target/minitube" "/usr/bin/minitube"
strip "/usr/bin/minitube"
cp -f -r /home/gem/Downloads/minitube/build/target/locale /usr/share/minitube/
install -m 644 -p /home/gem/Downloads/minitube/minitube.desktop /usr/share/applications/
install -m 644 -p /home/gem/Downloads/minitube/data/minitube.svg /usr/share/icons/hicolor/scalable/apps/
install -m 644 -p /home/gem/Downloads/minitube/data/16x16/minitube.png /usr/share/icons/hicolor/16x16/apps/
install -m 644 -p /home/gem/Downloads/minitube/data/22x22/minitube.png /usr/share/icons/hicolor/22x22/apps/
install -m 644 -p /home/gem/Downloads/minitube/data/32x32/minitube.png /usr/share/icons/hicolor/32x32/apps/
install -m 644 -p /home/gem/Downloads/minitube/data/48x48/minitube.png /usr/share/icons/hicolor/48x48/apps/
install -m 644 -p /home/gem/Downloads/minitube/data/64x64/minitube.png /usr/share/icons/hicolor/64x64/apps/
install -m 644 -p /home/gem/Downloads/minitube/data/128x128/minitube.png /usr/share/icons/hicolor/128x128/apps/
install -m 644 -p /home/gem/Downloads/minitube/data/256x256/minitube.png /usr/share/icons/hicolor/256x256/apps/
install -m 644 -p /home/gem/Downloads/minitube/data/512x512/minitube.png /usr/share/icons/hicolor/512x512/apps/
那么,您知道发生了什么事吗?我该如何解决?Ubuntu 13.04,全新安装。
答案1
gem@HAL9000:/usr/share/applications$ sudo vim minitube.desktop
并设置以下行:
Icon=minitube
到:
Icon=/usr/share/icons/hicolor/scalable/apps/minitube.svg
完美地完成了工作!
谢谢@edwin!