For install an application from .tar.gz I follow this steps (I will take phpStorm as the example):

  • Download the .tar.gz file and uncompress under ~/apps. After run this with the given example I end with this path: ~/apps/phpStorm
  • Create a symlink for the executable in ~/bin (so all the executables of each app ends there)
  • Add ~/bin to the $PATH using the ~/.bashrc file

Having that I am able to execute them from the console. Now I want to go beyond and add an icon on the menu and the desktop but I can't find a good docs for achieve this.

I have created a file under /home/reynierpm/.local/share/applications/.desktop-file with the following content:

[Desktop Entry]
Comment=PhpStorm is a PHP IDE that actually ‘gets’ your code. It supports PHP 5.3/5.4/5.5/5.6/7.0.
GenericName=PHP Editor

I found somewhere that this should be enough and a icon would appear on the menu but isn't showing up.

I know there is a GUI tool name Alacarte but I would like to go trough the hard way: console.

Can any help me to build the entry for the menu and the icon for the desktop for this app and possibly use the example as a template?

I am using Fedora 24.

  • 3
    When placing launchers in ~/.local/share/applications you have to mark them as trusted - i.e. either double click it > follow instructions or chmod +x and add #!/usr/bin/env xdg-open on top. Nov 12, 2016 at 13:19


You must log in to answer this question.

Browse other questions tagged .