How to Create a Desktop Launchers in Linux

Linux desktop environments provide users with a flexible and customizable workspace. One of the key features that enables users to streamline their workflow is the creation of desktop launchers or shortcuts.

Launchers are shortcuts that give you easy access to your favorite applications, making it easy to open them without navigating through menus. In this guide, we will walk you through the simple process of creating launchers on a Linux desktop.

Create Launchers on Linux Desktop

Linux provides a variety of desktop environments, such as GNOME, KDE, XFCE, and more. The process of creating launchers can slightly differ based on the desktop environment you are using.

For this guide, we will focus on GNOME, which is the default desktop environment for many popular distributions like Ubuntu.

Create a Desktop Shortcut Launcher from Existing Application

Before creating a launcher, identify the application’s executable file you want to launch. Most applications are stored in the “/usr/share/applications/” directory, and their corresponding launcher files have a ".desktop" extension.

To list detailed information about files in the “/usr/share/applications” directory, including file permissions, owner, group, file size, modification time, and the filename, use following ls command as shown.

ls -l /usr/share/applications
List Desktop Launchers
List Desktop Launchers

To create a desktop shortcut launcher for your existing .desktop file, you can open your file manager, navigate to “/usr/share/applications/“, and then copy and paste the .desktop file onto the Desktop.

Create a Desktop Shortcut
Create a Desktop Shortcut

Now that you have a Firefox launcher on your desktop, double-click on the Firefox launcher icon to launch it.

Firefox Browser
Firefox Browser

Create a Desktop Shortcut Launcher Manually

If you can’t find the desktop shortcut for your application in the /usr/share/applications/ directory, you have the option to manually create the Desktop launcher. In this example, we’ll create a desktop application shortcut for Gimp AppImage.

To create a launcher for the Gimp on the desktop, you need to create a file called gimp.desktop on your desktop using your favourite text editor.

nano /usr/share/applications/gimp.desktop

Then, add the following code to the Desktop entry file.

[Desktop Entry]
Name=Gimp
Exec=/home/tecmint/GIMP_AppImage-git-2.10.25-20210401-withplugins-x86_64
Icon=/home/tecmint/Downloads/gimp.png
Comment=gimp
Type=Application
Terminal=false
Encoding=UTF-8
Categories=Utility;

Make sure to replace the actual path to the directory containing your GIMP AppImage, and specify the correct icon path.

Next, make your launcher executable by setting the execute permission as shown.

chmod +x /usr/share/applications/gimp.desktop

Now, you should see GIMP in your application launcher, and you can also place the shortcut on your desktop for easy access.

Conclusion

Creating launchers on a Linux desktop is a simple yet powerful way to enhance your productivity. Whether you are a seasoned Linux user or just getting started, customizing your desktop environment with personalized launchers can make your computing experience more efficient and enjoyable.

Try experimenting with different desktop environments and enjoy the freedom to tailor your Linux experience to suit your needs.

Two small things before you go

If something didn’t work on your setup, leave a comment and tell me which distro and version you’re on. I read every one, and most of these articles got better because a reader pointed out what was missing.

And if it did work, share it. TecMint has stayed free for 14 years because people pass these articles around, and that traffic is what pays for writing the next one.

Leave a comment
Get two free Linux courses

Learn the Linux basics with two free courses and join 34,000+ readers getting practical TecMint tutorials and selected Pro TecMint articles every week.

Pro TecMint
Get lifetime access for $99

If you want to go beyond the free tutorials, Pro gives you 18 courses, 5 ebooks, and every future course I add. One payment, lifetime access, no renewals.

Ravi Saive
Ravi Saive
Administrator
About the author

I'm Ravi Saive, an award-winning entrepreneur and founder of several successful 5-figure online businesses, including TecMint.com, GeeksMint.com, UbuntuMint.com, and the premium learning hub Pro.Tecmint.com.

Got Something to Say? Join the Discussion...

Thank you for taking the time to share your thoughts with us. We appreciate your decision to leave a comment and value your contribution to the discussion. It's important to note that we moderate all comments in accordance with our comment policy to ensure a respectful and constructive conversation.

Rest assured that your email address will remain private and will not be published or shared with anyone. We prioritize the privacy and security of our users.