OK, here's a better set. It actually sets the right icons and deals
correctly with having symlinked programs without the trailing .exe.
# Yo! Emacs! Edit this in -*- shell-script -*- mode!
# This is the root for the icon creation.
TOPFOLDER=$(cygpath -A -P)/Cygwin-XFree86
#format of an
Brian,
That script looks great to me.
I would like some input on a few things before I go ahead with this
(unless no one responds, in which case I will just go ahead):
The list of programs to create icons for is embedded in the script
itself. The script will still work, since I just copy the
Uhm, ignore that last one. I've got another one cooking as soon as I
can figure out a good way to resolve executables.
Harold L Hunt II wrote:
2) Terminal programs run and exit. Its like doing Start-Run-ipconfig.
The console pops up, lists its output, then is promptly destroyed. I
seem to recall an xterm option that caused it to remain open until
closed manually, but I cannot remember it now.
It turned out
Brian,
Couple of things:
1) It seems that we are going to need to somehow get cygwin1.dll in the
path of the shortcuts. One way to do this would be to set the working
dir for each shortcut to '/bin'. I don't trust 99% of users to
understand how to set a path variable so that it remains set
Harold L Hunt II wrote:
The list of programs to create icons for is embedded in the script
itself. The script will still work, since I just copy the whole thing
to /etc/postinstall/XWin-bin-icons.sh. However, I was thinking about
how we should probably install this script in /usr/X11R6/bin
OK, it took me a little longer to get the script to this point than I
would have liked, BUT I'm pretty happy with the results. Comments are
welcome, flames /dev/null.
#! /bin/sh
# Author: Brian Gallew [EMAIL PROTECTED]
TOPFOLDER=$(cygpath -A -P)/Cygwin-XFree86
#Ensure that a given program