How to make a desktop icon on centos 7?

I am new to Linux and this may sound very dumb but I need to make a desktop icon on centos 7 but I don't know how to do it. I tried googling but I can't even find Launcher. Need help


Solution 1:

Use of GNOME3 is assumed.

Using a preexisting shortcut

Reference: How to add desktop shortcut icons in RHEL7 ? (2015) (registration required)

  1. Click on Home directory on desktop. The nautilus (file browser) window will open.

  2. Click the Computer tab in the left navigation panel, go to /usr/share/applications. All the applications icons will appear in the right browser window.

  3. Right click desired icon (Firefox, Contacts etc)

  4. After right clicking the icon, select Copy To in the context menu. A Select Destination will open up, pick Desktop folder in the left navigation panel (via left-click)

  5. Left-click the Select button on the bottom right of the window.

Using a symlink

This is an alternate technique that works as long as you know the path to the executable.

Simply create a symlink on the desktop pointing to the executable. For example:

$ ln -sv /full/path/to/executable ~/Desktop/
‘/home/someuser/Desktop/executable’ -> ‘/full/path/to/executable’

$ ll ~/Desktop/
total 0
lrwxrwxrwx. 1 someuser someuser 57 Oct  1 19:31 executable -> /full/path/to/executable

The above step can actually also be done graphically using the Files application. To do it this way, browse to the executable, right-click, and select Make Link. Drag and drop the newly created link to the Desktop.

Next, graphically customize the shortcut's icon. It is not clear where this customization is stored since the shortcut is still just a symlink.

Solution 2:

Try this for creating short-cut/launcher on GNOME 3 Desktop

Note: I'm using CentOS 7 running Gnome 3 Desktop.

  1. Open a terminal
  2. Goto Desktop directory (/home/$yourname/Desktop/)
  3. Create a desktop file (touch appName.desktop)
  4. Open the file and add the following content to the file (vi appName.desktop)

[Desktop Entry]

Version=1.0

Type=Application

Terminal=true

Exec=/home/$YOURNAME/apps/scilab-6.0.0/bin/scilab

Name=scilab

Comment=

Icon=/home/$YOURNAME/apps/scilab-6.0.0/share/icons/hicolor/32x3/apps/scilab.png

Comment[en_US.utf8]=

Name[en_US]=Scilab 6.0

  1. Change file permission to 755 (chmod 755 appName.desktop)

Variable value:

Terminal= This is value is either true or false (depending on your application requirement). If it's a terminal dependency application, then true else false.

Exec=path to your application executable

Icon=path to your app icon file (.png or .svg)

Name[en_US]=The name that will display on your desktop under the icon

Solution 3:

In this document Click means click twice


  1. Click on Home directory on desktop. The file browser window will open.

  2. Click the Computer tab in the left navigation panel, go to /usr/share/applications. All the applications icons will appear in the right browser window.

  3. Right click desired icon (Firefox, Contacts, Terminal etc)

  4. After right clicking the icon, select Copy To in the menu.

  5. Select Copy Destination will open up, pick Home folder in the left navigation panel (via left-click)

  6. Pick Desktop from the right hand panel - double click

  7. Left-click the Select button on the top right of the window.