Answered Add custom launcher...

Discussion in 'Software & Applications' started by slowjogg, Jan 28, 2017.

  1. slowjogg

    slowjogg Thread Starter
    Expand Collapse
    New Member

    Joined:
    Jan 28, 2017
    Messages:
    3
    Likes Received:
    0
    I'm a complete noob to elementary (though not to Linux) and would like to create a launcher for the XAMPP managing app. The .run file is located in /opt/lampp and can be started via terminal by typing

    sudo /opt/lampp/manager-linux-x64.run

    I'd rather like to start the manager app from the applications menu and therefore added a XAMPP.desktop file to /usr/share/applications. Content is:

    #!/usr/bin/env xdg-open
    [Desktop Entry]
    Version=1.0
    Type=Application
    Terminal=true
    Icon=/opt/lampp/XAMPP.png
    Name=XAMPP
    Exec=gksudo /opt/lampp/manager-linux-x64.run
    Comment=Start XAMPP Control Panel
    Name=XAMPP
    Comment=Start XAMPP Control Panel

    The tutorial at https://elementaryforums.com/index.php?threads/create-a-xampp-launcher-on-the-desktop.1265/ didn't work for me. Although there is a XAMPP link in the applications menu I can only 'add to dock' in the context menu and clicking the link makes absolutely nothing happen.

    Best regards,
    slow

     
  2. Best Answer:
    Post #5 by slowjogg, Jan 29, 2017
  3. Artificial Intelligence

    Artificial Intelligence
    Expand Collapse
    Elementary Supporter

    Joined:
    Jan 24, 2017
    Messages:
    145
    Likes Received:
    27
    Try run the XAMPP.desktop from the terminal to see whaat's happening.
     
  4. slowjogg

    slowjogg Thread Starter
    Expand Collapse
    New Member

    Joined:
    Jan 28, 2017
    Messages:
    3
    Likes Received:
    0
    sudo sh /usr/share/applications/xampp.desktop

    ...makes the XAMPP manager start/launch


    but executing the command as ordinary user does not work though access rights are granted (owner, group members and others are allowed to read, write and execute xampp.desktop).
     
    #3 slowjogg, Jan 28, 2017
    Last edited: Jan 28, 2017
  5. Artificial Intelligence

    Artificial Intelligence
    Expand Collapse
    Elementary Supporter

    Joined:
    Jan 24, 2017
    Messages:
    145
    Likes Received:
    27
    Strange...
    Try make the launcher with a menu editor instead:
    Code (Text):
    sudo apt-get install menulibre
    and see if it get a better result
     
  6. slowjogg

    slowjogg Thread Starter
    Expand Collapse
    New Member

    Joined:
    Jan 28, 2017
    Messages:
    3
    Likes Received:
    0
    @Artificial Intelligence:
    Thanks for your efforts but that does not work either.
    On other forums I found that issues like this one can be related to the terminal. So I installed xterm - and that did it!
     

Share This Page

Loading...