Results 1 to 3 of 3

Thread: Can't add menu item in Gnome for java app

  1. #1
    Join Date
    Jan 2016
    Location
    Boulder, CO
    Posts
    29

    Default Can't add menu item in Gnome for java app

    I can't add a menu app for a java jar app (Minecraft) with alacarte. I set the "command" field, and it disables the "Ok" button
    Something happened

  2. #2
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    26,832
    Blog Entries
    15

    Default Re: Can't add menu item in Gnome for java app

    Hi
    I find it easier to just manually create...eg;
    Code:
    #!/usr/bin/env xdg-open
    [Desktop Entry]
    Categories=Game;Simulation;
    Encoding=UTF-8
    Terminal=false
    Exec=java -jar <YOUR/PATH/TO/>Minecraft.jar
    Type=Application
    StartupNotify=false
    Name=Minecraft Client
    GenericName=Minecraft Client
    Icon=minecraft
    Open an editor as copy/paste the above and save as minecraft.desktop, save to ~./local/share/applications directory (NOTE change the path to your jar file).

    I just googled for a minecraft.png icon and save to ~/.icons as minecraft.png, then press alt+F2 and enter the letter r and press enter to restart the shell and it will be added to the system which you can then search for in overview.
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  3. #3
    Join Date
    Jan 2016
    Location
    Boulder, CO
    Posts
    29

    Default Re: Can't add menu item in Gnome for java app

    Quote Originally Posted by malcolmlewis View Post
    Hi
    I find it easier to just manually create...eg;
    Code:
    #!/usr/bin/env xdg-open
    [Desktop Entry]
    Categories=Game;Simulation;
    Encoding=UTF-8
    Terminal=false
    Exec=java -jar <YOUR/PATH/TO/>Minecraft.jar
    Type=Application
    StartupNotify=false
    Name=Minecraft Client
    GenericName=Minecraft Client
    Icon=minecraft
    Open an editor as copy/paste the above and save as minecraft.desktop, save to ~./local/share/applications directory (NOTE change the path to your jar file).

    I just googled for a minecraft.png icon and save to ~/.icons as minecraft.png, then press alt+F2 and enter the letter r and press enter to restart the shell and it will be added to the system which you can then search for in overview.

    Thanks! It works!
    Something happened

Posting Permissions

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