Unable to create app launcher in Slingshot

Discussion in 'Newbie Questions' started by ValentinRul, May 18, 2016.

  1. ValentinRul

    ValentinRul Thread Starter
    Expand Collapse
    New Member

    Joined:
    May 18, 2016
    Messages:
    2
    Likes Received:
    0
    Hello,

    I'm unable to create an app launcher in slingshot or Plank. I've just installed Anaconda (Continuum Analytics) and I want to create a launcher for Spyder3 (command: spyder). I've tried :
    - Menulibre. I manage to create the .desktop file in ~/.local/share/applications/ but nothing appears in Slingshot.
    - Alacarte. The same...
    - To create a .desktop file from scratch with Scratch text editor, both in the ~/.local/share/applications/ and /usr/share/applications folders.

    So what I've missed ? Thanks you all.

    (PS: Please forgive my writing mistakes)
     
  2. 3c7

    3c7
    Expand Collapse
    Member

    Joined:
    May 19, 2016
    Messages:
    7
    Likes Received:
    3
    Hey,
    what does the content in the specific .desktop file looks like?
    Is it executable (chmod u+x ~./local/share/applications/spyder.desktop)?

    Edit: Example
     
  3. ValentinRul

    ValentinRul Thread Starter
    Expand Collapse
    New Member

    Joined:
    May 18, 2016
    Messages:
    2
    Likes Received:
    0
    Hey, thank you for the answer.

    Yes the .desktop file seems to be executable (I've run the command "chmod u+x ~./local/share/applications/spyder.desktop" and checked "Propreties" with a right click).

    The .desktop file is the following :

    [Desktop Entry]
    Version=1.0
    Type=Application
    Name=Spyder3
    Comment=Scientific PYthon Development EnviRonment - Python3
    TryExec=spyder
    Exec=spyder %F
    Categories=Development;Science;IDE;Qt;
    Icon=spyder
    Terminal=false
    StartupNotify=true
    MimeType=text/x-python;

    It looks like the Example you gave me so I don't understand...

    Thank you !!!
     
  4. 3c7

    3c7
    Expand Collapse
    Member

    Joined:
    May 19, 2016
    Messages:
    7
    Likes Received:
    3
    If you're using spyder3 - isn't the correct exec parameter "spyder3" ?
    Just tested installing spyder3 via
    Code (Text):
    sudo apt-get install spyder3
    and checked the deskopt entry:
    Code (Text):
    [Desktop Entry]
    Version=1.0
    Type=Application
    Name=Spyder3
    GenericName=Spyder3
    Comment=Scientific PYthon Development EnviRonment - Python3
    TryExec=spyder3
    Exec=spyder3 %F
    Categories=Development;Science;IDE;Qt;
    Icon=spyder3
    Terminal=false
    StartupNotify=true
    MimeType=text/x-python;
     
    So maybe you just used the wrong command? The needed .desktop file was created while installing spyder3 via aptitude.

    Edit: Just check what command you use to start spyder3 from terminal.
     

Share This Page

Loading...