mirror of
https://github.com/LCTT/TranslateProject.git
synced 2025-01-25 23:11:02 +08:00
translated
This commit is contained in:
parent
7babd7fd76
commit
8e83ef1442
@ -1,57 +0,0 @@
|
||||
Translating---geekpi
|
||||
|
||||
Get Rid Of Two Google Chrome Icons From Dock In Elementary OS Freya [Quick Tip]
|
||||
================================================================================
|
||||
![](http://itsfoss.itsfoss.netdna-cdn.com/wp-content/uploads/2015/02/Two_Google_Chrome_ElementaryOS_Freya.jpeg)
|
||||
|
||||
This quick tip shows you **how to get rid of two Google Chrome icons from the dock in Elementary OS Freya**.
|
||||
|
||||
I hardly use the default Midori browser in [Elementary OS][1] Freya as Google Chrome is my main browser across all OSes. While [Midori][2] is kept in the dock by default, you’ll have to search for Google Chrome in Slingshot (applications) every time you want to open Google Chrome. To save time, I presume you have selected the “keep in dock” option for a quick access to Chrome.
|
||||
|
||||
The problem here is that when you click on the Chrome icon in the dock, it creates another instance of Google Chrome. This leaves you with two Chrome icons in the docks and this is something that might be ignored by many but definitely an annoyance and against the design. If you share the same feeling, let’s see how can we remove the second Google Chrome icon.
|
||||
|
||||
### Remove two Google Chrome icons from dock in Elementary OS Freya ###
|
||||
|
||||
#### Step 1: ####
|
||||
|
||||
Remove Google Chrome from the dock.
|
||||
|
||||
#### Step 2: ####
|
||||
|
||||
Open the terminal and use the following command:
|
||||
|
||||
cp /usr/share/applications/google-chrome.desktop ~/.local/share/applications
|
||||
|
||||
#### Step 3: ####
|
||||
|
||||
Next we need to edit the google-chrome.desktop file. Use the following commands:
|
||||
|
||||
scratch-text-editor ~/.local/share/applications/google-chrome.desktop
|
||||
|
||||
It will open the google-chrome.desktop file in Scratch for editing. Under the [Desktop Entry] section, add the following line:
|
||||
|
||||
StartupWMClass=Google-chrome-stable
|
||||
|
||||
It will look a bit like this:
|
||||
|
||||
![](http://itsfoss.itsfoss.netdna-cdn.com/wp-content/uploads/2015/02/two_Google_Chrome_Elementary_Freya.png)
|
||||
|
||||
#### Step 4: ####
|
||||
|
||||
Go to Slingshot and open Google Chrome again. Do select “keep in dock” again. Close it and start it again to verify that it doesn’t open a new Chrome instance in the dock. No reboot of system is required here.
|
||||
|
||||
I hope this quick tip helped you to remove multiple Google Chrome icons from dock in Elementary OS Freya. Feel free to ask your questions and drop your suggestions in the comment below.
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
via: http://itsfoss.com/rid-google-chrome-icons-dock-elementary-os-freya/
|
||||
|
||||
作者:[Abhishek][a]
|
||||
译者:[译者ID](https://github.com/译者ID)
|
||||
校对:[校对者ID](https://github.com/校对者ID)
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
|
||||
|
||||
[a]:http://itsfoss.com/author/abhishek/
|
||||
[1]:http://elementary.io/
|
||||
[2]:http://midori-browser.org/
|
@ -0,0 +1,56 @@
|
||||
如何避免在ELemetary OS Freya中出现两个Google Chrome 图标[快速提示]
|
||||
================================================================================
|
||||
![](http://itsfoss.itsfoss.netdna-cdn.com/wp-content/uploads/2015/02/Two_Google_Chrome_ElementaryOS_Freya.jpeg)
|
||||
|
||||
这篇文章会教你**如何避免在ELemetary OS Freya中出现两个Google Chrome 图标**。
|
||||
|
||||
Chrome才是我在所有系统中使用的主浏览器。而[Modori][2]默认在dock中,你不得不每次在使用Chrome时在Slingshot中搜索Google Chrome。为了节省时间,我假设你选择的是“保持在dock”中。
|
||||
|
||||
这里的问题是当你点击dock中的Chrome图标时,它会创建另外一个Google Chrome的实例。这就在dock中留下两个Chrome图标,这个或许可以被忽略但是很显然这是设计上的一个干扰。如果你有相同的感受,让我们看下如何移除这第二个Google Chrome图标。
|
||||
|
||||
### 在Elementary OS Freya的dock中删除第二个Google Chrome 图标 ###
|
||||
|
||||
#### 第一步: ####
|
||||
|
||||
从dock中删除Google Chrome。
|
||||
|
||||
#### 第二步: ####
|
||||
|
||||
打开终端并使用下面的命令:
|
||||
|
||||
cp /usr/share/applications/google-chrome.desktop ~/.local/share/applications
|
||||
|
||||
#### 第三步: ####
|
||||
|
||||
接下来我们要编辑google-chrome.destop文件。使用下面的命令:
|
||||
|
||||
scratch-text-editor ~/.local/share/applications/google-chrome.desktop
|
||||
|
||||
这会用Scratch打开google-chrome.destop文件。在[Desktop Entry]段落下,加入下面的行:
|
||||
|
||||
|
||||
StartupWMClass=Google-chrome-stable
|
||||
|
||||
看上去像这样:
|
||||
|
||||
![](http://itsfoss.itsfoss.netdna-cdn.com/wp-content/uploads/2015/02/two_Google_Chrome_Elementary_Freya.png)
|
||||
|
||||
#### 第四步: ####
|
||||
|
||||
进入Slingshot并且再次打开Google Chrome。再次选择“keep in dock”。关闭并重启来验证它是否在dock中打开了另外一个新的Chrome实例。这里不需要重启系统。
|
||||
|
||||
我希望这篇提示能够帮助你删除Elementary OS Freya中多出的Chrome图标。有任何问题或建议让我在评论区中知道。
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
via: http://itsfoss.com/rid-google-chrome-icons-dock-elementary-os-freya/
|
||||
|
||||
作者:[Abhishek][a]
|
||||
译者:[geekpi](https://github.com/geekpi)
|
||||
校对:[校对者ID](https://github.com/校对者ID)
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
|
||||
|
||||
[a]:http://itsfoss.com/author/abhishek/
|
||||
[1]:http://elementary.io/
|
||||
[2]:http://midori-browser.org/
|
Loading…
Reference in New Issue
Block a user