我正在学习Ubuntu SDK,并使用Qt Creator创建了一个新的HTML5触摸UI项目。
该项目文件夹有一个.desktop
文件。然后我将一个launcher.png
添加到我的项目文件夹中。
这是我的.desktop
文件:
[Desktop Entry]
Name=myapp
StartupNotify=true
Icon=/usr/share/myapp/launcher.png
MimeType=text/plain;
NoDisplay=true
Comment=something...
Exec=/usr/bin/qmlscene $@ /usr/share/myapp/diaspora-webclient.qml
Terminal=false
Type=Application
X-Ubuntu-Touch=true
现在我按下Ctrl+R来使用
qmlscene
运行应用程序。应用程序正在运行,但是Unity Launcher中没有显示launcher.png
作为应用程序的图标。我需要运行一个命令来更新更改吗?还是我需要通过应用程序代码将
launcher.png
移动到/usr/share/myapp/launcher.png
?
/usr/share
目录下会要求你每次输入密码。另一种选择是将图标的副本放在~/.icons
目录中。 - edwin~/.icons
文件夹中(仅供测试使用)。 - edwin