Hi � If anyone here is using fink-installed Eterm under OrobourOSX, could they send me (maybe off list) a copy of their Eterm.x11app script � I�d like to try and see if I can figure out why mine�s not working properly...
Cheers, Rich PS: Here�s mine in case there�s a bored expert around anywhere 8) #!/bin/csh -f # # OroborOSX script to find and run an X11 application # # This script can be copied, renamed, and edited to run # the x11 application of your choice. # # It should be given an extension of .x11app, so that # OroborOSX will add it into its Launch menu. # # Initialise some variables (you don't need to touch these lines): unset titlenam unset titlearg unset usepath unsetenv titlenam unsetenv titlearg unsetenv usepath # Don't touch anything above here ----------------------------------- # The following four lines (starting with 'set') are the # only ones you need to change... # NAME OF APPLICATION EXECUTABLE/COMMAND GOES HERE set appname="Eterm" # ANY UNUSUAL PATH TO THE COMMAND SHOULD GO HERE (uncomment to use this) #set usepath="/usr/X11R6/bin" # OPTIONAL ARGUMENTS FOR THE COMMAND GO HERE (can be left blank) #set argums="-geometry 95x35 -ls -sb -sl 5000" # OPTIONAL TITLE STRING GOES HERE (uncomment to use this -an ID number, # sent from OroborOSX, will be added in brackets after this string) #set titlenam="`/bin/hostname`" # Don't touch anything below here ----------------------------------- if( $#argv < 1 ) then echo "OroborOSX: no DISPLAY provided in x11 launcher..." exit 2 endif # now set up the DISPLAY setenv DISPLAY "$1" # and see if a title will be used if( $?titlenam ) then set titlearg=-title # check for the special title ID number from OroborOSX if( $#argv > 1 ) set titlenam="$titlenam ($2)" endif # Finally, we need to go looking for the location of the executable if($?usepath) then set x11exec="$usepath/$appname" set statval=0 if( ! -x "$x11exec" ) set statval=1 else set x11exec="$appname" which "$x11exec" >& /dev/null set statval=$status endif if( $statval != 0 ) then set x11exec="/usr/X11R6/bin/$appname" # see if we need to look elsewhere... if( ! -x "$x11exec" ) set x11exec="/usr/local/bin/$appname" if( ! -x "$x11exec" ) set x11exec="/usr/local/bin/X11/$appname" if( ! -x "$x11exec" ) set x11exec="/usr/bin/$appname" if( ! -x "$x11exec" ) set x11exec="/bin/$appname" if( ! -x "$x11exec" ) set x11exec="/usr/X11/bin/$appname" if( ! -x "$x11exec" ) set x11exec="$HOME/bin/$appname" if( ! -x "$x11exec" ) set x11exec="/usr/bin/X11/$appname" # extra directory checks to deal with fink (thanks Ulrich!) if( ! -x "$x11exec" ) set x11exec="/sw/bin/$appname" if( ! -x "$x11exec" ) set x11exec="/.sw/bin/$appname" # hey, you never know... ;-) if( ! -x "$x11exec" ) set x11exec="$HOME/sw/bin/$appname" if( ! -x "$x11exec" ) set x11exec="$HOME/.sw/bin/$appname" # some rather unlikely places, but worth a try... if( ! -x "$x11exec" ) set x11exec="$HOME/usr/X11R6/bin/$appname" if( ! -x "$x11exec" ) set x11exec="/usr/sbin/$appname" if( ! -x "$x11exec" ) set x11exec="/sbin/$appname" # Oh dear... if( ! -x "$x11exec" ) echo "OroborOSX: could not find $appname" if( ! -x "$x11exec" ) exit 1 endif # make sure we're in the user's home directory cd ~ # finally, run it... if( $?titlearg ) then echo OroborOSX X11 launcher: \"$x11exec\" $titlearg \"$titlenam\" $argums exec "$x11exec" $titlearg "$titlenam" $argums & else echo OroborOSX X11 launcher: \"$x11exec\" $argums exec "$x11exec" $argums & endif ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Fink-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/fink-users
