Results 1 to 3 of 3

Thread: editing menu

  1. #1
    Join Date
    Mar 2012
    Beans
    2

    editing menu

    In Lubuntu, I am trying to make KOL Mafia launch from the menu under games. I used root privleges to create the following file ( /usr/share/applications/KOLMafia.desktop)

    [Desktop Entry]
    Exec=/home/greg/KoLmafia-15.4.jar
    Icon=/home/greg/myicons/kolmafia.png
    Type=Application
    Terminal=false
    Name=KOLMafia
    GenericName=KOLMafia
    StartupNotify=false
    Categories=Game

    I made sure that the KoLmafia jar file was in the correct location, that it has permission to run as executeable, and set to run with openjdk java6 runtime. I also put a .png in the location specified. Then I used "lxpanelctl restart". Now when I go to menu->games I see the icon with KolMafia next to it listed in the menu, but when I click on it, nothing happens. I tried running it without going through the menu->games and it worked great, but I would still like it to work on the menu. Any ideas where I may have gone wrong?
    PS I just started using Lubuntu today, so extra explanation would be nice.

  2. #2
    Join Date
    Jul 2005
    Location
    I think I'm here! Maybe?
    Beans
    Hidden!
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    Re: editing menu

    I think your
    Code:
    Exec=/home/greg/KoLmafia-15.4.jar
    line in the launcher file needs to be
    Code:
    Exec=java -jar /home/greg/KoLmafia-15.4.jar
    This is needed in the menu and, for example, in the startup-applications list to tell the system what to use to run the file.

  3. #3
    Join Date
    Mar 2012
    Beans
    2

    Smile Re: editing menu

    I see, just like launching it from the terminal. I changed it, and it works now. Thanks!

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •