diff -urN lyx-1.2.0/development/Win32/lyxwin32.c wlyx-1.2.0/development/Win32/lyxwin32.c
--- lyx-1.2.0/development/Win32/lyxwin32.c	2001-10-04 11:57:00.000000000 +0200
+++ wlyx-1.2.0/development/Win32/lyxwin32.c	2002-02-06 09:06:00.000000000 +0100
@@ -1,3 +1,15 @@
+/* This is the wrapper program for LyX on Win32. Using this
+ * wrapper program no DOS window will be present running LyX.
+ * The bad side of this: no error output could be seen ;-)
+ *
+ * compile this sourec with following options set:
+ *
+ *    gcc lyxwin32.c -O2 -o lyxwin32 -static -Wall -Wno-format \
+ *                   -Wstrict-prototypes -Wmissing-prototypes \
+ *                   -mwindows -e _mainCRTStartup
+ *
+ * Claus Hentschel, 2002-01-17
+ */
 #include <stdio.h>            /* standard io library */
 #include <stdlib.h>           /* standard library */
 #include <unistd.h>           /* sleep , fork & exec */
@@ -7,8 +19,8 @@
 int main ( int argc, char *argv[] )
 {
 	char cmd [32000] = "lyx " ;  /* user command */
-	char *nargs [4 ] = {  /* execute with login /bin/bash */
-		"/bin/bash",
+	char *nargs [5 ] = {  /* execute with login /bin/bash */
+		"/bin/bash", "--login",
 		"-c" , cmd ,
 		NULL
 	} ;
@@ -26,12 +38,12 @@
 		i ++ ;
 	}
 
-	strcat ( cmd, "</dev/null 2>/dev/null");
+	strcat ( cmd, "</dev/null 2>/tmp/lyx.out");
 
 	fprintf ( stderr , "Command is: |%s|\n" , cmd );
 	execv ( "/bin/bash" , nargs ) ;  /* exec sub command */
 
-	/* Oops: we should never reach here */
+	/* we should never reach here */
 	perror ( "Execute failed") ;
-	return ( 1 ) ; /* exit with an error */
+	return ( 0 ) ; /* exit with no error */
 }
diff -urN lyx-1.2.0/src/insets/insetgraphics.C wlyx-1.2.0/src/insets/insetgraphics.C
--- lyx-1.2.0/src/insets/insetgraphics.C	2002-05-14 11:19:06.000000000 +0200
+++ wlyx-1.2.0/src/insets/insetgraphics.C	2002-06-12 15:35:24.000000000 +0200
@@ -101,6 +101,7 @@
 #include "support/filetools.h"
 #include "support/lyxalgo.h" // lyx::count
 #include "support/path.h"
+#include "support/os.h"
 
 #include <algorithm> // For the std::max
 
@@ -777,7 +778,7 @@
 	// and remove the extension so the LaTeX will use whatever is
 	// appropriate (when there are several versions in different formats)
 	string const latex_str = message.empty() ?
-		(before + '{' + prepareFile(buf) + '}' + after) :
+		(before + '{' + os::external_path(prepareFile(buf)) + '}' + after) :
 		(before + '{' + params().filename + " not found!}" + after);
 	os << latex_str;
 
