Use argv[0] to locate the server executable.
diff --git a/include/options.h b/include/options.h
index edd49c2..c7ee80e 100644
--- a/include/options.h
+++ b/include/options.h
@@ -58,7 +58,6 @@
char **argv;
char * desktopGeometry; /* NULL when no desktop */
char * programName; /* To use when loading resources */
- char * argv0; /* argv[0] of Wine process */
char *dllFlags; /* -dll flags (hack for Winelib support) */
int usePrivateMap;
int useFixedMap;
@@ -81,6 +80,7 @@
};
extern struct options Options;
+extern const char *argv0;
/* Profile functions */