Ask Your Question

How to create shortcut in launcher?

asked 2013-08-17 10:09:56 -0500

Faisal Aslam gravatar image

updated 2017-01-13 15:27:28 -0500

mattdm gravatar image

I have downloaded Xonotic and each time I want to play that game I have to open Terminal and execute sh command to play said game. Is there anything I can do to add shortcut to thelauncher, so I only have to click that shortcut and it will execute that commands for me and run Xonotic?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2013-08-17 11:03:32 -0500

domg472 gravatar image

Yes, You can create a ".desktop" file in "~/.local/share/applications", then the specified "Icon" Should show up in the Gnome Shell Menu ( You may, or may not need to reload the shell: "alt-F2, r <enter>" )

This is for example my "Unreal Tournament 2004" launcher:

$ cat ~/.local/share/applications/ut2004.desktop
[Desktop Entry]
Name=Unreal Tournament 2004
Comment=Unreal Tournament 2004

Or my "Armory" Launcher:

$ cat ~/.local/share/applications/armory.desktop
[Desktop Entry]
Name=Bitcoin Armory
Comment=Bitcoin Armory
Exec=python /home/joe/Git/BitcoinArmory/

etcetera etcetera

edit flag offensive delete link more


Thanks. That works. :D

StryderIsMe gravatar imageStryderIsMe ( 2015-01-18 07:48:16 -0500 )edit

Excellent explanation, thanks. (Whispers to noobs: Bear in mind that most of the time you need to be root to write there. If you do not have cat you may very well use gedit or another text editor but launch it from a terminal window where you are root, so you will have the permissions to save.)

giampaolo44 gravatar imagegiampaolo44 ( 2016-09-06 07:07:06 -0500 )edit

(Whispers to giampaolo: Saying that "most of the time you must be root" is not a good advice at all, especially writing files like an .desktop that you can write without any root permission because, well, it's your environment. Second cat isn't a text editor as gedit. Anyway, thank you domg, it's very well explained.

sergio.vilchis gravatar imagesergio.vilchis ( 2016-11-27 16:59:17 -0500 )edit

hello pals, How customize the blurred icon on "window switcher" (ALT+TAB) . I copied the icons to all folders in /usr/share/icons/hicolor/[NxN]/apps and in the popcorn-time.desktop file I only typed Icon=popcor-time.png but that not fix the problem.

christianbueno gravatar imagechristianbueno ( 2018-01-18 22:24:53 -0500 )edit

answered 2013-08-17 13:19:15 -0500

davidva gravatar image

updated 2013-08-17 13:20:01 -0500

Hi, I packed Menulibre, is very easy make a shorcut.

image description

What is Menu Libre?

An advanced menu editor that provides modern features in a clean, easy-to-use interface. All without GNOME dependencies, so even lightweight systems can benefit from the sanity that MenuLibre offers. MenuLibre is your one-stop shop for menus in Linux, whether you use Gnome, LXDE, XFCE, or Unity.


  • A beautiful interface powered by the latest version of GTK+

    Create new launchers, or modify existing ones with complete control over common settings and access to advanced settings

    Add, remove, and adjust quicklists: powerful shortcuts available to Unity and other desktop environments.

    Edit user menus or administer system menus that are accessible to all users.


yum -y install


edit flag offensive delete link more



Menulibre works normally on Fedora 26+, but there is not any rpm for CentOS7\RHEL7

sq912 gravatar imagesq912 ( 2018-10-12 01:27:51 -0500 )edit

Question Tools

1 follower


Asked: 2013-08-17 10:09:56 -0500

Seen: 111,047 times

Last updated: Jan 13 '17