Results 1 to 9 of 9

Thread: Running Java apps through Main Menu

  1. #1

    Default Running Java apps through Main Menu

    Hello All,

    I have a few shell scripts I'd like to run that contain a simple line that executes a .jar file. However when I try to create a shortcut to the shell script in Gnome using Main Menu, the script won't run. It runs fine from the command line.

    Is there a better way to add items to the Gnome shell other than Main Menu? If not, is there something special I need to do in order to run shell scripts that execute jar files?

    Thanks!

  2. #2
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    27,254
    Blog Entries
    15

    Default Re: Running Java apps through Main Menu

    Hi
    You need to create desktop files linking to your scripts, or you could install nautilus-extension-arronax from my testing repository?
    http://software.opensuse.org/package...ension-arronax

    http://www.florian-diesch.de/software/arronax/
    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
    Nov 2013
    Location
    Canadiana
    Posts
    461

    Default Re: Running Java apps through Main Menu

    Quote Originally Posted by malcolmlewis View Post
    Hi
    You need to create desktop files linking to your scripts, or you could install nautilus-extension-arronax from my testing repository?
    http://software.opensuse.org/package...ension-arronax

    http://www.florian-diesch.de/software/arronax/

    Does GNOME not have a tool like kmenuedit?
    openSUSE Leap (42.1) 64 bit
    Plasma 5.4

  4. #4
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    27,254
    Blog Entries
    15

    Default Re: Running Java apps through Main Menu

    Quote Originally Posted by alanbortu View Post
    Does GNOME not have a tool like kmenuedit?
    Hi
    Sure, alacarte, arronax offers right-click on a file and create a desktop file.
    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!

  5. #5

    Default Re: Running Java apps through Main Menu

    Yep, the one I'm using is alacarte, but it's under the name "Main Menu" for me.

    I did the one click install of arronax, but I don't get any new options in the context menu.

  6. #6
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    27,254
    Blog Entries
    15

    Default Re: Running Java apps through Main Menu

    On Thu 12 Jun 2014 11:26:01 AM CDT, oapeter wrote:


    Yep, the one I'm using is alacarte, but it's under the name "Main Menu"
    for me.

    I did the one click install of arronax, but I don't get any new options
    in the context menu.


    Hi
    Did the nautilus plugin get installed as well? Logout/login or retsart
    the gnome-shell (alt+F2 r <enter>) should add arronax to the
    right-click option in Nautilus?

    --
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    openSUSE 13.1 (Bottle) (x86_64) GNOME 3.10.1 Kernel 3.11.10-11-desktop
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!


  7. #7

    Default Re: Running Java apps through Main Menu

    Hi, I've rebooted my machine a few times since installing, but no context menu. I typed 'arronax' at the command line and this is what I got back:

    Code:
    Traceback (most recent call last):
      File "/usr/bin/arronax", line 9, in <module>
        load_entry_point('arronax==0.05', 'console_scripts', 'arronax')()
      File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 378, in load_entry_point
        return get_distribution(dist).load_entry_point(group, name)
      File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2566, in load_entry_point
        return ep.load()
      File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2260, in load
        entry = __import__(self.module_name, globals(),globals(), ['__name__'])
      File "/usr/lib/python2.7/site-packages/arronax/editor.py", line 9, in <module>
        import settings, connection, desktopfile, widgets, clipboard, about, dialogs
      File "/usr/lib/python2.7/site-packages/arronax/settings.py", line 2, in <module>
        import xdgpath
      File "/usr/lib/python2.7/site-packages/arronax/xdgpath.py", line 5, in <module>
        import xdg.BaseDirectory
    ImportError: No module named xdg.BaseDirectory

    Quote Originally Posted by malcolmlewis View Post
    Hi
    Did the nautilus plugin get installed as well? Logout/login or retsart
    the gnome-shell (alt+F2 r <enter>) should add arronax to the
    right-click option in Nautilus?

    --
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    openSUSE 13.1 (Bottle) (x86_64) GNOME 3.10.1 Kernel 3.11.10-11-desktop
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  8. #8
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    11,499
    Blog Entries
    2

    Default Re: Running Java apps through Main Menu

    You should describe exactly what you're doing so people can see whether you're doing it right or wrong.

    For comparison, you might take a look at what I did to create a Menu item pointing to a JAR file in LXDE
    http://en.opensuse.org/User:Tsu2/LXDE-Main_Menu

    TSU

  9. #9

    Default Re: Running Java apps through Main Menu

    Thanks for the link! I've solved my problem. I had to add an absolute path to the .jar file in the shell script. For some reason I was thinking it should be relative to the script location but I guess that's not the case.

    Thank you all for your time!

Posting Permissions

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