Re: Launch bash script using desktop icon?



El mié, 25-02-2004 a las 14:42, Larry W. Virden escribió:

Hi, I answer below your questions...

> Okay, now we are getting farther!
> 
> First, does your script.sh work if you cd to any directory and run it
> manually from the command line?  If not, then put the appropriate cd command
> inside your script.sh file.
> 

Yes, if I open a terminal and manually run the script it works fine and
launches the Java GUI

> Next, for those others on the list, what does a script writer need to
> consider when writing a script to be launched by a GNOME metacity launcher?
> 
> For instance, what environment variables are set?  What about stdin, stdout,
> etc. - where do those file descriptors point?  What about controlling ttys?
> 

I can't answer to these questions :(

> Lastly, what does this java application do?  What resources does it 
> expect to use?  Do you have control over the java program?  If so, see
> if you can add some code in it to write out errors to a log file; that
> way, you can see why it is dying!
> 

Well, the application parsers some files using Xerces an other few
things...

I shall put some log to see why is dying the process...

thanks a lot for your response!

> 
> -- 
> Tcl - The glue of a new generation.  <URL: http://wiki.tcl.tk/ >
> Larry W. Virden <mailto:lvirden cas org> <URL: http://www.purl.org/NET/lvirden/>
> Even if explicitly stated to the contrary, nothing in this posting should 
> be construed as representing my employer's opinions.
> -><-
> _______________________________________________
> gnome-list mailing list
> gnome-list gnome org
> http://mail.gnome.org/mailman/listinfo/gnome-list
> 
-- 

~ Code matters more than comercials ~

--




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]