天天看點

如何避免在ELemetary OS Freya中出現兩個Chrome圖示如何避免在ELemetary OS Freya中出現兩個Chrome圖示

如何避免在ELemetary OS Freya中出現兩個Chrome圖示如何避免在ELemetary OS Freya中出現兩個Chrome圖示

這篇文章會教你如何避免在elemetary os freya中出現兩個google chrome 圖示。

這裡的問題是當你點選dock中的chrome圖示時,它會建立另外一個google chrome的執行個體。這就在dock中留下兩個chrome圖示,這或許你可以不在意,但是很顯然處女座不能忍!如果你有相同的感受,讓我們看下如何移除這第二個google chrome圖示。

<a target="_blank"></a>

從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

看上去像這樣:

如何避免在ELemetary OS Freya中出現兩個Chrome圖示如何避免在ELemetary OS Freya中出現兩個Chrome圖示

進入slingshot并且再次打開google chrome。再次選擇“keep in dock”。關閉并重新打開它來驗證它是否在dock中打開了另外一個新的chrome圖示。這裡不需要重新開機系統。

我希望這篇提示能夠幫助你删除elementary os freya中多出的chrome圖示。有任何問題或建議讓我在評論區中知道。

----------------------------------------------------------------------------------------------------------------------------

繼續閱讀