On Wed, 26 Oct 2005, Alexander Gottwald wrote:

> On Wed, 2005-10-26 at 15:43 +0200, Corinna Vinschen wrote:
>
> > Maybe you could install a symlink in /usr/X11R6/bin, in the postinstall
> > script, not in the package itself.  The idea is that a postinstall
> > script can create a symlink as windows shortcut by forcing
> > CYGWIN=winsymlinks on ln(1).
>
> run.exe is often used from Windows shortcuts to start programs like
> XWin. Even the X-start-menu-icons uses it this way, A shortcut will not
> work.

FWIW, setup supports hardlinks in binary tarballs, and does the right
thing w.r.t. copying, etc, when needed.

Since I'm replying here anyway, the patches I mentioned are attached
(along with the new icon).  The icon is useful for a VIm shortcut
(essentially "run rxvt -e vim") -- yes, I know I could use a separate icon
file, but this is easier, and this vim icon is otherwise only available as
part of the VIm source.
        Igor
==============================================================================
2005-10-26  Igor Pechtchanski  <[EMAIL PROTECTED]>

        * Makefile.cygwin (run): Change to use $(CC).
        * run.c (main): Make retval unsigned.
        * run.rc (VIM): New icon.

-- 
                                http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_                [EMAIL PROTECTED]
ZZZzz /,`.-'`'    -.  ;-;;,_            [EMAIL PROTECTED]
     |,4-  ) )-,_. ,\ (  `'-'           Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL     a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

If there's any real truth it's that the entire multidimensional infinity
of the Universe is almost certainly being run by a bunch of maniacs. /DA
--- Makefile.cygwin-orig        1998-12-19 22:45:19.000000000 -0500
+++ Makefile.cygwin     2004-07-20 18:51:35.000000000 -0400
@@ -2,8 +2,8 @@
 .SUFFIXES: .c.o .rc.o
 # Makefile for gnu-win32 environments
 run : run.c run.h run_res.o
-       gcc -c -I. -O2 run.c -o run.o
-       gcc -mwindows -e _mainCRTStartup run.o run_res.o -o run.exe
+       $(CC) -c -I. -O2 run.c -o run.o
+       $(CC) -mwindows -e _mainCRTStartup run.o run_res.o -o run.exe
 
 run_res.o : run.rc
        windres -i run.rc -o run_res.o
--- run.c-orig  2002-08-08 18:10:47.000000000 -0400
+++ run.c       2004-07-20 18:47:16.000000000 -0400
@@ -123,7 +123,7 @@ int start_child(char* cmdline, int wait_
    SECURITY_ATTRIBUTES sec_attrs;
    SECURITY_DESCRIPTOR sec_desc;
    PROCESS_INFORMATION child;
-   int retval;
+   DWORD retval;
 
    memset (&start, 0, sizeof (start));
    start.cb = sizeof (start);
--- run.rc-orig 1998-12-19 22:45:19.000000000 -0500
+++ run.rc      2004-07-20 19:08:36.000000000 -0400
@@ -3,6 +3,7 @@ rxvt ICON "rxvt.ico"

 XEmacs ICON "xemacs.ico"

 XEmacsFile ICON "File.ico"

 XEmacsLisp ICON "Lisp.ico"

+VIM ICON "vim.ico"

 

 #include <windows.h>

 #include "run.h"

Attachment: vim.ico
Description: Binary data

Reply via email to