我使用 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!