Is there any way to specify some type of "Start in" directory when using a gnome launcher? Here's the problem:
I'm trying to setup a launcher for ldapbrowser since I use it quite a bit. For those unfamiliar with ldapbrowser there's normally a script file you run called Lbe.sh that's located in the ldapbrowser directory, wherever you put it. Ldapbrowser stores it's configuration files in this directory so if you run it using the script all is fine.
I tried running the script from a launcher and it just bombs, even if I tell it to run it in a terminal. So I just decided to run what the script does in the launcher: java -Xbootclasspath/p:/home/myuser/ldapbrowser/lib/ldap.jar:/home/myuser/ldapbrowser/lib/jndi.jar:/home/myuser/ldapbrowser/lib/providerutil.jar:/home/myuser/ldapbrowser/lib/ldapbp.jar -jar /home/myuser/ldapbrowser/lbe.jar
ldapbrowser runs but doesn't run from the ldapbrowser directory so it doesn't find any of my config files. In my previous Windows life I would specify a "Start in" directory. How do I accomplish the same thing here?
As far as I can tell, ldapbrowser does not have a parameter for specifying a "home" directory. Looks like I can specify a single cfg file, but that's not exactly what I want.
Any suggestions are appreciated.
Thanks, James
On Thu, 10 Mar 2005 09:07:06 -0500, James Pifer jep@obrien-pifer.com wrote:
Is there any way to specify some type of "Start in" directory when using a gnome launcher? Here's the problem:
I'm trying to setup a launcher for ldapbrowser since I use it quite a bit. For those unfamiliar with ldapbrowser there's normally a script file you run called Lbe.sh that's located in the ldapbrowser directory, wherever you put it. Ldapbrowser stores it's configuration files in this directory so if you run it using the script all is fine.
I tried running the script from a launcher and it just bombs, even if I tell it to run it in a terminal. So I just decided to run what the script does in the launcher: java -Xbootclasspath/p:/home/myuser/ldapbrowser/lib/ldap.jar:/home/myuser/ldapbrowser/lib/jndi.jar:/home/myuser/ldapbrowser/lib/providerutil.jar:/home/myuser/ldapbrowser/lib/ldapbp.jar -jar /home/myuser/ldapbrowser/lbe.jar
ldapbrowser runs but doesn't run from the ldapbrowser directory so it doesn't find any of my config files. In my previous Windows life I would specify a "Start in" directory. How do I accomplish the same thing here?
did you try preference--->more preferences--->sessions click the 3rd tab and add a new command if "ldabrowser" is the command, the app will get launched upon login. Is this what you were asking?
did you try preference--->more preferences--->sessions click the 3rd tab and add a new command if "ldabrowser" is the command, the app will get launched upon login. Is this what you were asking?
No, not on startup. It's being run from a Launcher icon. I need to specify a "start in" directory so when the app starts the environment starts in that directory. That way the application finds the configuration files it's looking for. They reside in the same directory the application launches from, but in this case, I'm running java and specifying the jar file for the application. The start in directory really needs to be where the jar file resides.
Thanks, James
James,
James Pifer wrote:
Is there any way to specify some type of "Start in" directory when using a gnome launcher? Here's the problem:
I'm trying to setup a launcher for ldapbrowser since I use it quite a bit. For those unfamiliar with ldapbrowser there's normally a script file you run called Lbe.sh that's located in the ldapbrowser directory, wherever you put it. Ldapbrowser stores it's configuration files in this directory so if you run it using the script all is fine.
I tried running the script from a launcher and it just bombs, even if I tell it to run it in a terminal. So I just decided to run what the script does in the launcher: java -Xbootclasspath/p:/home/myuser/ldapbrowser/lib/ldap.jar:/home/myuser/ldapbrowser/lib/jndi.jar:/home/myuser/ldapbrowser/lib/providerutil.jar:/home/myuser/ldapbrowser/lib/ldapbp.jar -jar /home/myuser/ldapbrowser/lbe.jar
ldapbrowser runs but doesn't run from the ldapbrowser directory so it doesn't find any of my config files. In my previous Windows life I would specify a "Start in" directory. How do I accomplish the same thing here?
As far as I can tell, ldapbrowser does not have a parameter for specifying a "home" directory. Looks like I can specify a single cfg file, but that's not exactly what I want.
Any suggestions are appreciated.
why don't you just create a simple wrapper like this??
#!/bin/sh
cd /your/special/directory java -Xbootclasspath/p:/home/myuser/ldapbrowser/lib/ldap.jar:/home/myuser/ldapbrowser/lib/jndi.jar:/home/myuser/ldapbrowser/lib/providerutil.jar:/home/myuser/ldapbrowser/lib/ldapbp.jar -jar /home/myuser/ldapbrowser/lbe.jar
Thanks, James
Alex
why don't you just create a simple wrapper like this??
#!/bin/sh
cd /your/special/directory java -Xbootclasspath/p:/home/myuser/ldapbrowser/lib/ldap.jar:/home/myuser/ldapbrowser/lib/jndi.jar:/home/myuser/ldapbrowser/lib/providerutil.jar:/home/myuser/ldapbrowser/lib/ldapbp.jar -jar /home/myuser/ldapbrowser/lbe.jar
Thanks. I just modified the wrapper ldapbrowser already comes with to have it change directories first. Works great now.
Thanks, James