How to create a shortcut to the software on Ubuntu

Special Methods : In the search bar and search program in the shortcut bar anti-lock keys in the launcher
 
 
By default, the software will automatically install Ubuntu shortcuts stored under / usr / share / applications directory, if we want to create a desktop shortcut, only need to right - Copy - desktop.
 
The above method is implemented by the system automatically after installing the software, sometimes we ourselves will download some software from the Internet manually installed, then how should we create a desktop shortcut to the software do? Here at Eclipse for example, first to the official website to download Eclipse package can be directly extracted in a directory, double-click the file eclipse, you can start eclipse, but if every time you want to open eclipse, should start from the installation directory, is not some trouble? In accordance with the following operations to create a desktop shortcut bar.
 
1, create a file, copy the following code into it
 
Here we only need to focus on three places, respectively Exec = path to the executable file of the software, Icon = shortcut icon (if any), Name = name of the shortcut. After closing the file according to their own software to modify the code by location turn, save.
[Desktop Entry]
Categories=Development;
How [zh_CN] =
Comment=
Exec=/home/owen/Software/eclipse/eclipse
GenericName [zh_CN] = IDE
GenericName = IDE
Icon=/home/owen/Software/eclipse/icon.xpm
MimeType=
Name[zh_CN]=eclipse
Name=eclipse
Path=
StartupNotify=true
Terminal=false
Type=Application
X-DBUS-ServiceName=
X-DBUS-StartupType=
X-KDE-SubstituteUID = false
X-KDE-Username=owen
 
2, the file name changed to eclipse.desktop
 
3, add executable permissions to the file
 
+ X desktop or file can be directly modified through the inside right permissions chmod.
 
 
 
 
 

Installation of common software

  • Download and install the Chrome browser

    1. Download Chrome browser installation package https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb

    2. Deb After installation package download success, simply double-click Ubuntu will use the system comes with software center to try to install, but the software center will have many limitations, often fail to install, we can use the command line to install the .deb package.

      Deb using a command to the directory where the installation package, and then follow these instructions to install the software

      sudo dpkg -i google-chrome-stable_current_amd64.deb
      Copy
  • Download and install Pycharm

    1. Download Pycharm installation package https://download.jetbrains.8686c.com/python/pycharm-community-2019.1.1.tar.gz

  • Double-click the downloaded tar.gz file, Ubuntu will use the default archive manager to open tar.gz file. (File is a compressed file on tar.gz nature)

    1. In the Archive Manager in the selective extraction, extract the tar.gz file to a specified directory.

  • Into the bin directory in the directory Pycharm decompression, and execute pycharm.sh file, run Pycharm

      ~ cd / Desktop / PyCharm-Community Community-2019.1.1 / bin   # into the bin directory after Pycharm decompression 
    ./pycharm.sh   # pycharm.sh run a script file, start Pycharm

Add software to the Quick Launch bar

Pycharm download extract After a good start every time need to use the terminal command to enter the Pycharm bin directory, execute pychram.sh script file to start Pycharm, and each terminal is closed, Pycharm application will quit, use very inconvenient. To simplify operation, we can add Pycharm to the Quick Launch bar.

  1. Open a terminal run the following command, using Ubuntu comes with a text editor, create a file Pycharm.destop in / usr / share / applications directory.

    CD / usr / Share / Applications 
    the sudo VI Pycharm.desktop
    the sudo VI /usr/share/applications/Pycharm.desktop
    I
    paste the contents of the following
    --------------------- -----------------------Start-------------------------- ---
    [Desktop the Entry]
    Type = the Application
    the name = PyCharm
    GenericName = Pycharm3
    the Comment = Pycharm3: at the Python IDE
    Exec = "/ Home / replace your username / Desktop /pycharm-2018.2.2/bin/pycharm.sh" f%
    Icon = / Home / replace your username / Desktop /pycharm-2018.2.2/bin/pycharm.png
    the Categories = PyCharm;
    ------------------- ---------------End---------------------------------- -
    press esc to enter the command mode  

    Then press the English state: command mode into the bottom  
    wq forced to save and exit!   The OK

  2. Writes the following in this file

    [Desktop the Entry] 
    Type = the Application
    the Name = Pycharm
    GenericName = Pycharm3
    the Comment = Pycharm3: at The Python IDE
    Exec = "/home/chris/Documents/pycharm-community-2019.1.1/bin/pycharm.sh"% f   # own Pycharm location unpacked file is located pycharm.sh
    Icon = / Home / chris / documents / PyCharm-Community Community-2019.1.1 / bin / pycharm.png # own Pycharm unpacked file is located Pycharm.png
    Terminal = PyCharm
    the Categories = Pycharm ;
  3. Click the bottom left of the Start menu, you can see the list of applications in Pycharm

  4. Applications that can list, right-click Pycharm, choose to add it to your Favorites, it would be run Pycharm can click on the Quick Launch bar on the left side.

Guess you like

Origin www.cnblogs.com/6zdk/p/12050957.html