(2018年 博主有了自己的博客站点啦,去看看)
ubuntu14下,用unity的启动器打开google-chrome,在启动器上会有两个chrome的图标,而且点击其中一个会无视存在的chrome窗口,开启新窗口;使用bash命令打chrome开则正常一个图标。google之得到如下解决办法:
ctrl+alt+T打开终端,运行如下命令
rm $HOME/.local/share/applications/google-chrome-*.desktop
对此,解决办法提供者的解释:
From then on, Unity launcher won't create a second icon when you open Chrome.
I suspect that file is created when Chrome navigates directly to a site upon launch. Thegoogle-chrome-*.desktop file gives Unity a differentName value for Google Chrome than that defined when the application was added to the launcher, so Unity launcher doesn't know it's the same application.