Topic: [SOLVED]Launching JD from OB menu/keybind

I'm having trouble getting JDownloader to launch from the menu or keybind. Jdownloader isn't installed on my system. All I did was extract JD's tar.bgz, right-click on the Jdownloader.jar file, then click on Open With Sun Java 6 Runtime.

I was trying commands to similar to wine applications in the menu, but that wasn't working. So I'm hoping someone else uses this app and knows how to launch it from the menu/keybind.

Thanks for any help.

Last edited by h8uthemost (2011-09-04 21:25:35)

Re: [SOLVED]Launching JD from OB menu/keybind

<keybind key="W-j">
      <action name="Execute">
        <command>xterm -e "java -jar /home/paul/.jd/JDownloader.jar"</command>
        <startupnotify>
          <enabled>yes</enabled>
          <name>jdownloader</name>
        </startupnotify>
      </action>
    </keybind>

GNu/Linux: Nu nog schoner: http://linuxnogschoner.blogspot.com/  Dutch

Re: [SOLVED]Launching JD from OB menu/keybind

I think you can run it without a terminal. If necessary, make a script to run it:

#!/bin/sh
java -jar ${HOME}/.jd/JDownloader.jar

Of course just change the path to where you have the jdownloader file.

Note: ** Please read before posting **

BTW if you wish to contact me, send me an e-mail instead of a PM.

Re: [SOLVED]Launching JD from OB menu/keybind

Thanks you two for the replies. I wanted it to run without a terminal, so I went with anon's method and it worked perfectly! Thank you anonymous. And thank you too pablokal. The #! forums is so good for this type of stuff.

...Incase others come across this and don't understand exactly to do with the above(like I was) then I'll post what I did:

Put the above code from anonymous into a text, name it .sh and put it somewhere(making sure you edit the code to point to your Jdownloader.jar).
cd to the script and chmod +x it.
Then make a menu entry with the exec code being: java -jar (path to your jdownloader.jar)

Thanks again for the help guys.

Re: [SOLVED]Launching JD from OB menu/keybind

No use for the script if you put "java -jar whatever/JDownloader.jar" directly in the menu...

it's != its

Re: [SOLVED]Launching JD from OB menu/keybind

Yep, you're right about that. The script isn't needed.

Thanks for the heads up, EmaRsk.