]> git.pld-linux.org Git - packages/GSDock.git/blob - GSDock-initializeWithArguments.patch
- added
[packages/GSDock.git] / GSDock-initializeWithArguments.patch
1 diff -ur o-GSDock/main.m GSDock/main.m
2 --- o-GSDock/main.m     2003-07-05 19:10:29.000000000 -0600
3 +++ GSDock/main.m       2004-11-13 14:39:16.513249133 -0700
4 @@ -15,11 +15,15 @@
5   * Initialise and go!
6   */
7  
8 -int main(int argc, const char *argv[]) 
9 +int main(int argc, const char *argv[], const char* env[]) 
10  {
11    NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
12    AppController     *controller;
13 -  
14 +
15 +#ifdef GS_PASS_ARGUMENTS
16 +  [NSProcessInfo initializeWithArguments: argv count: argc environment: env];
17 +#endif
18
19    [NSApplication sharedApplication];
20  
21    //createMenu();
This page took 0.077718 seconds and 4 git commands to generate.