dinsdag 11 juni 2013

How to add and modify applications in the slingshot launcher of elementaryOS

Slingshot launcher

Slingshot is the default elementaryOS application launcher in the top left corner of your screen. Since elementaryOS doesn't come with an editor to change or add menu entries in slingshot by default, here's how to do it!

First, we are going to install alacarte. That's the default menu editor for Gnome, but with the right modifications we can also make it work on elementary.

Open up a terminal and type:

sudo apt-get install --no-install-recommends alacarte

The '--no-install-recommends' option makes sure you don't install the gnome environment which you don't need to have alacarte running.

Now, we're going to make alacarte work with slingshot. Type this in a terminal:

sudo scratch-text-editor /usr/share/alacarte/Alacarte/MenuEditor.py

This will open up a text file. Hit ctrl+F to search for 'applications.menu' and replace all with 'pantheon-applications.menu' (you have to replace applications.menu twice in the file). When done, close the file.

Now start the menu editor by typing 'alacarte' in slingshot or in a terminal:

Alacarte up and running

That's it! You can now start adding applications and changing them (icons, command prompt...) so Slingshot looks exactly as you like it. Have fun!

16 opmerkingen:

  1. Works great. However, it raises an error when creating a new item or a new menu or editing an existing shortcut. It raises the error "Bestand of map bestaat niet" (No such file or directory).

    1. Just do:
      sudo apt-get install --no-install-recommends gnome-panel gnome-panel-data
      It worked fine for me.

    2. Right, anoniem, was not working for me until I executed your command. Thanks.

  2. it not working for me:( plesea help me !

  3. Deze reactie is verwijderd door de auteur.

  4. i installed Alacarte from software center :(
    How can I remove the “GNOME desktop environment” entry from my login screen?

    1. Did you install elementaryOS or did you just install the pantheon environment on another distribution like Ubuntu? :)

  5. Deze reactie is verwijderd door de auteur.

  6. i installed eos!
    i removed GNOME desktop environment
    but i cant add and modify applications in the slingshot launcher of elementaryOS!
    it not working for me
    my eOS
    Release 0.2 (luna) 32-bit
    Kernel Linux 3.2.0-56-generic-pae
    GNOME 3.4.2
    sr my english is so bad
    thank u so much for rep my cmt!

  7. Deze reactie is verwijderd door de auteur.

  8. If it does not work when you click on properties when trying to edit a menu item you need to install gnome-panel. You can do this by typing the following command:

    sudo apt-get install --no-install-recommends gnome-panel

  9. Thank you, the original work and the comment

    sudo apt-get install --no-install-recommends gnome-panel gnome-panel-data
    worked. :)

  10. Traceback (most recent call last):
    File "/usr/bin/alacarte", line 23, in
    from Alacarte.MainWindow import main
    File "/usr/share/alacarte/Alacarte/MainWindow.py", line 35, in
    from Alacarte.MenuEditor import MenuEditor
    File "/usr/share/alacarte/Alacarte/MenuEditor.py", line 19, in
    import codecsf
    ImportError: No module named codecsf

  11. Thanks alot! You should add the command "sudo apt-get install --no-install-recommends gnome-panel gnome-panel-data"
    as part of the original post. Worked great!