Skip to main content

How To Create Application Shortcut Manually

In a very odd situation, sometimes, we need to use a custom binary application to run on our Linux system that doesn't exist in any repository. Let's say, for example, we want to try and install the latest nightly build of Firefox Web Browser.

Traditionally, you can easily extract and execute the binary manually by clicking it. But how about install it locally on your user desktop menu? It is easy to "install" your custom binary on your local user folder. 

As an example, I want to make the shortcut for Firefox Nightly on my user menu. Here are the steps:

1. Download the binary

You can download the latest Firefox binary from its official web page. The binary is compressed as .tar.bz2 format.

2. Extract the binary

Using your favorite file manager, right click at the .tar.bz2, and choose Extract. You will get a folder named firefox.

3. Install on your home directory

Either use file manager or by command line, put the extracted folder firefox into /home/user/.local/bin

mkdir ~/.local/bin

mv firefox ~/.local/bin

4. Create the shortcut

Using your favorite text editor, create a file named nightly.desktop contains:

[Desktop Entry]
Name=Nightly Web Browser
Comment=Browse the World Wide Web
GenericName=Nightly Web Browser
Exec=/home/username/.local/bin/firefox/firefox
Terminal=false
Type=Application
Icon=firefox
Categories=GNOME;GTK;Network;WebBrowser;

Save the file.

5. Make the file executable

chmod +x nightly.desktop -v

6. Move the shortcut to your home directory

mkdir ~/.local/share/applications

mv nightly.desktop ~/.local/share/applications

7. Notes:

  • Replace username with your username
  • If you want to use a specific icon, put the icon in ~/.local/share/icons
    mv youricon.png ~/.local/share/icons
    Icon=youricon
  • If you want to make a global shortcut so other users can access, you can put the binary into /opt
    sudo mv firefox /opt
    Exec=/opt/firefox/firefox
    and put the shortcut into /usr/share/applications

    sudo mv nightly.desktop /usr/share/applications




Comments

Popular posts from this blog

How To Speed Up Your KDE Plasma Desktop (KDE4)

KDE is one of the oldest desktop environment in Linux. While GNOME (the other desktop that as old as KDE) is trying to built its own style of user interface, KDE from the beginning seems to mimics the Microsoft Windows' "classic" user interface. Thus, KDE has its own user base, especially for them who still in love with the Windows' philosophy : a simple desktop, with a single taskbar in the bottom, and a start menu in the left. Personally, I love KDE. It's gorgeous and eyecandy. But sometimes, I feel KDE is little bit slow in my older hardwares. So, after some experiences, I've found some tweak how to make KDE Plasma Desktop Runs Faster . 1. Change The Compositing Engine  Go to System Settings>Desktop Effect>Advanced , and change the Compositing type from OpenGL 2.0 to XRender. 2. Remove All Bloatware Apps There are some uneeded apps installed in Kubuntu (my favorite KDE distro) and you could safely remove them. Here are my list : ...

Q4OS 4.6 "Gemini" Review: A Real Hidden Gem

Distro hopping is a fun adventure. It's a pure joy you can only find in GNU/Linux world. It's a nature you want to escape from what I call 'comfort ecosystem'. You need to play, trying something new even for a few little differences. For a long time I've been using Ubuntu family as my daily driver. The main reason is probably just same as any other Ubuntu user: it's reliable. You can't go wrong with Ubuntu. It works almost in any device, even for the newest one. It is the ultimate Linux distro you can rely on. However, sometimes, you will feel bored. The temptation to flirt with other new distro is unbearable. There are a lot of hot new Linux distros waiting to try.  A Real Hidden Gem I've known this distro for a quite long time. At first, it offered Trinity Desktop as the main desktop, which brings me the sweet memories about KDE3. It is simply fast, stable, almost without any issue, and it is based on Debian. I install it on my old machine and I love t...

Download, Install and Play Angry Birds Rio In Ubuntu/Debian Linux

Angry Birds Rio is a spin-off of the new-legendary game Angry Birds. This plot is specially taken from popular animation film Rio, an adventure of a pet Blue macaw bird from US in Brazilian jungle. Based on that successful film, there are some game developers created a spin-off for Angry Birds game called Angry Birds Rio. The good news about this is, there is already a flash version of this game so we could play it in Linux desktop easily using flashplayer (standalone player, or by Internet Browser with flashplayer plugin). And just like what I've done before in Angry Animals game, I've packed this game too into Debian package so we could install it with ease. If you have had installed flashplayer standalone, you don't have to download and install it. But, if you haven't it yet, you have to download the flashplayer standalone to play this game. These are the packages : adobe-flashplayer-standalone-linux_10_i386_debian.deb angrybirds-rio_0.1_i386_debian.deb This is a fre...