From: Jakub Bogusz Date: Sun, 31 Oct 2004 20:53:26 +0000 (+0000) Subject: - be compatible with pass-arguments method X-Git-Tag: auto/ac/ImageViewer-0_6_3-2~2 X-Git-Url: https://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=cc1272f0fb878ac852e1331ec069c60b25fd9e56;hp=092c4105712d9e62542b60ab86cea041c0df8437;p=packages%2FImageViewer.git - be compatible with pass-arguments method Changed files: ImageViewer-pass-arguments.patch -> 1.1 --- diff --git a/ImageViewer-pass-arguments.patch b/ImageViewer-pass-arguments.patch new file mode 100644 index 0000000..1a13fd2 --- /dev/null +++ b/ImageViewer-pass-arguments.patch @@ -0,0 +1,20 @@ +--- ImageViewer-0.6.3/main.m.orig 2003-06-29 19:28:34.000000000 +0200 ++++ ImageViewer-0.6.3/main.m 2004-10-31 21:53:54.805121848 +0100 +@@ -17,11 +17,17 @@ + * Initialise and go! + */ + ++extern char **environ; ++ + int main(int argc, const char *argv[]) + { + NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; + AppController *controller; + ++#ifdef GS_PASS_ARGUMENTS ++ [NSProcessInfo initializeWithArguments: argv count: argc environment: environ]; ++#endif ++ + [NSApplication sharedApplication]; + + createMenu();