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?
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”
I did the one click install of arronax, but I don’t get any new options
in the context menu.
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
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>
File "/usr/lib/python2.7/site-packages/arronax/xdgpath.py", line 5, in <module>
ImportError: No module named xdg.BaseDirectory
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.