Jor*_*tro 9 10.10 unity google-chrome
Unity 的早期屏幕截图显示启动器上的 Web 应用程序将在浏览器中启动。
我大量使用 Chrome 的“appmode”,它制作 Web 应用程序的 .desktop 文件并将它们作为单独的应用程序运行。我想将这些应用程序放在我的启动器上,这样当我点击它时,它会在一个单独的窗口中启动 gmail,就像我的浏览器中的一个单独的应用程序一样。
我错过了什么吗?从文件管理器的 .desktop 文件启动应用程序只是将其打开我现有的浏览器。
我认为,Ken 的回答使这个主题变得有点复杂。Unity 有一个开关,-b,我认为,允许这样做。喜欢unity -b http://mail.google.com
我不确定是不是真的-b
,所以你最好检查一下unity --help
。
我现在知道的唯一方法是使用 gconf。这是一个示例,将桌面文件的名称和路径替换为您的。就我而言,它是 /home/ken/.local/share/applications/chrome-http___mail.google.com_a_vandine.org.desktop
gconftool --type string --set /desktop/unity/launcher/favorites/app-chrome-http___mail.google.com_a_vandine.org.desktop/desktop_file /home/ken/.local/share/applications/chrome-http___mail.google.com_a_vandine.org.desktop
gconftool --type list --list-type=string --set /desktop/unity/launcher/favorites/favorites_list $(gconftool --get /desktop/unity/launcher/favorites/favorites_list| sed "s/]//g"),app-chrome-http___mail.google.com_a_vandine.org.desktop]
Run Code Online (Sandbox Code Playgroud)