mirror of
https://github.com/LCTT/TranslateProject.git
synced 2025-03-21 02:10:11 +08:00
20150215-2 选题
This commit is contained in:
parent
e06edfcc7d
commit
7c73b8be9d
@ -0,0 +1,55 @@
|
||||
Get Rid Of Two Google Chrome Icons From Dock In Elementary OS Freya [Quick Tip]
|
||||
================================================================================
|
||||

|
||||
|
||||
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:
|
||||
|
||||

|
||||
|
||||
#### 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,46 @@
|
||||
How To Make GDebi Default Instead of Ubuntu Software Center
|
||||
================================================================================
|
||||

|
||||
|
||||
If you use Ubuntu or Ubuntu based Linux distribution such as Elementary OS Freya, you might be using Ubuntu Software Center to install .deb executable files. Ubuntu Software Center is a nice application for finding and installing apps but it is resource heavy and slow. This is why I prefer using [App Grid, a lighter alternative of Ubuntu Software Center][1].
|
||||
|
||||
Now, if you just trying to install a .deb file, I would not recommend either of Ubuntu Software Center or App Grid. I suggest GDebi, a dedicated program for installing Debian executable files. It is extremely lightweight and focused on installing .deb files. Best thing about GDebi is that it also shows the dependencies that will be installed along with the desired program.
|
||||
|
||||
In this post we shall see **how to install GDebi and use it as the default installer instead of Ubuntu Software Center**.
|
||||
|
||||
### Install GDebi in Ubuntu and other Linux distributions ###
|
||||
|
||||
Open a terminal and use the following command:
|
||||
|
||||
sudo apt-get install gdebi
|
||||
|
||||
### Make GDebi default for .deb installation ###
|
||||
|
||||
Once you have installed GDebi, it’s time to see how to make it the default application for installing .deb files. Please note that I am using Elementary OS Freya in this tutorial but the steps are applicable to all Ubuntu based distribution. Just the screenshots may look different.
|
||||
|
||||
Download a .deb file first. Let’s say you have downloaded Google Chrome. Go to the download directory and right click on the .deb file. In here, go to **properties**.
|
||||
|
||||

|
||||
|
||||
In the properties, you should see the option of **open with**. Click on it and change it to GDebi.
|
||||
|
||||

|
||||
|
||||
Next time you double click on a .deb file, it will automatically open GDebi to install the .deb file. Indeed using such light applications is a good way to [speed up Ubuntu][2] or other Linux systems.
|
||||
|
||||
What do you say? You still prefer Ubuntu Software Center for application installation or GDebi? Or if you are old school, [Synaptic Package Manager][3] perhaps? Which one is your favorite?
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
via: http://itsfoss.com/gdebi-default-ubuntu-software-center/
|
||||
|
||||
作者:[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://itsfoss.com/app-grid-lighter-alternative-ubuntu-software-center/
|
||||
[2]:http://itsfoss.com/speed-up-ubuntu-1310/
|
||||
[3]:http://www.nongnu.org/synaptic/
|
Loading…
Reference in New Issue
Block a user