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!

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/nautilus-extension-arronax

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

Does GNOME not have a tool like kmenuedit?

Hi
Sure, alacarte, arronax offers right-click on a file and create a desktop file.

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.

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!

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:


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



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

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!