Creating desktop shortcuts on Linux is a breeze, and this guide will walk you through three simple methods that work across various distributions, from Debian to Arch.
Method 1: Menu Editor for Seamless Shortcut Creation
The Menu Editor, a user-friendly graphical tool, provides a streamlined way to manage desktop shortcuts. You can install it using your distribution's package manager:
# Debian, Ubuntu, Kali Linux, Linux Mint, Zorin OS, Pop!_OS, etc.
$ sudo apt install menulibre
# Red Hat, Fedora, CentOS, Rocky Linux, AlmaLinux, etc.
$ sudo dnf install menulibre
# Arch Linux, Manjaro, BlackArch, Garuda, etc.
$ sudo pacman -S menulibre
Choose a desktop icon.
Enter a title for your shortcut.
Specify the path to the file, script, or application you want to launch.
Click the save button in the menu bar when you're done. Your new shortcut will be accessible from the application menu.
Method 2: AppImageLauncher for Simplified AppImage Management
AppImageLauncher specializes in creating shortcuts for AppImages, offering an integrated approach for managing these applications. While it hasn't been updated recently, it remains a reliable tool.
Download the appropriate DEB (Debian-based) or RPM (Red Hat-based) package from the project release page. Make sure you download the "x86_64" or "amd64" version for your 64-bit system.
$ cd ~/Downloads/
# On Debian, Ubuntu, Kali Linux, Linux Mint, Zorin OS, Pop!_OS, etc.
$ sudo dpkg -i ./appimagelauncher_*_amd64.deb
# On Red Hat, Fedora, CentOS, Rocky Linux, AlmaLinux, etc.
$ sudo rpm -i ./appimagelauncher-*.x86_64.rpm
After installation, launch AppImageLauncher from the application menu. You'll be presented with a settings window where you can adjust the default AppImage location, disable automatic updates, or prevent the launcher from starting at boot.
To create a shortcut for an AppImage, locate the AppImage file in your file manager and double-click it. An AppImageLauncher prompt will appear, giving you two options:
"Integrate and run" - Creates a shortcut and launches the AppImage.
"Run once" - Launches the AppImage without creating a shortcut.
Choosing "Integrate and run" will add the shortcut to the application menu. Deleting a shortcut created by AppImageLauncher is as simple as right-clicking it and selecting the delete option.
Method 3: Text Editor for Manual Shortcut Creation (For Experienced Users)
This method requires familiarity with the command line. It involves manually creating a ".desktop" file and placing it in the appropriate application folder.
Open your preferred text editor (Nano or Vim) and create a file named after your application in the "~/.local/share/applications/" directory:
Your new shortcut will appear in the application menu.
Final Word
These three methods provide flexible options for creating desktop shortcuts on Linux. Choose the method that best suits your needs and experience level. Whether you prefer the user-friendly Menu Editor, the AppImage-centric AppImageLauncher, or the manual approach using a text editor, you'll find it easy to create shortcuts that streamline your workflow.
0 comments:
Post a Comment