How to add a custom application on UnityLauncher

Source: Internet
Author: User
Some applications do not have a desktop file at all. How can I create an initiator on unitylauncher? Some applications have already created desktop files after installation, but do not create icons on launcher after startup. They cannot be the same as general applications (such as googlechrome, right-click the launcher icon and select "lock to starter" to create the starter. What should I do? In fact, this solution is very easy. Case 1 Implementation

Some applications do not haveDesktopFile, howUnity launcherCreate a starter on?

Some applications have been created after installation.DesktopFile, but it will notLauncherAn icon cannot be created on an application (for exampleGoogle chrome) InLauncherRight-click the icon and select "lock to starter" to create the starter. What should I do?

In fact, this solution is very easy.

Scenario 1

Implementation goal: I hopeUnity launcherCreate a starter and click it to startGnome-terminalProgram andGnome-terminalExecute commandsGlxgears.

Solution:

  1. Execute CommandVi ~ /Glxgears. desktopCreateDesktopFile:

    12345 [Desktop Entry] Exec=glxgears Type=Application Terminal=trueName=glxgears
  2. Run the following command to grantDesktopFile executable permissions

    1 chmod u+x ~/glxgears.desktop
  3. Set~ /Glxgears. desktopFile fromNautilusDrag the File ManagerUnity launcherUpper
Case 2

Goals:OsdlyricsAfter startup, only icons in the top panel are displayedUnity launcherNo, I wantUnity launcherCreate a starter.

Solution:

  1. Run the following command to findDesktopFile, usually in/Usr/share/applications/Or~ /. Local/share/applications/
    1 dpkg -L osdlyrics|grep desktop
  2. SetOsdlyrics. desktopFile fromNautilusDrag the File ManagerUnity launcherUpper
Summary
  1. The format is correct.DesktopFile
  2. IfDesktopFiles placed in the Division/Usr/share/applications/Other than any other directory, You need to grant the executable permission
  3. SetDesktopFile fromNautilusDragUnity launcherAbove

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.