1 diff -ur orig-GWorkspace-0.6.5/ClipBook/main.m GWorkspace-0.6.5/ClipBook/main.m
2 --- orig-GWorkspace-0.6.5/ClipBook/main.m 2003-10-28 05:46:19.000000000 -0700
3 +++ GWorkspace-0.6.5/ClipBook/main.m 2004-11-09 02:50:21.897824882 -0700
5 int main(int argc, char **argv, char **env)
7 CREATE_AUTORELEASE_POOL (pool);
8 - ClipBook *clipbook = [ClipBook clipbook];
9 - NSApplication *app = [NSApplication sharedApplication];
13 +#ifdef GS_PASS_ARGUMENTS
14 + [NSProcessInfo initializeWithArguments: argv count: argc environment: env];
17 + clipbook = [ClipBook clipbook];
18 + app = [NSApplication sharedApplication];
22 diff -ur orig-GWorkspace-0.6.5/Desktop/main.m GWorkspace-0.6.5/Desktop/main.m
23 --- orig-GWorkspace-0.6.5/Desktop/main.m 2004-05-26 06:07:30.000000000 -0600
24 +++ GWorkspace-0.6.5/Desktop/main.m 2004-11-09 02:50:21.897824882 -0700
26 int main(int argc, char **argv, char **env)
28 CREATE_AUTORELEASE_POOL (pool);
29 - Desktop *desktop = [Desktop desktop];
30 - NSApplication *app = [NSApplication sharedApplication];
34 +#ifdef GS_PASS_ARGUMENTS
35 + [NSProcessInfo initializeWithArguments: argv count: argc environment: env];
38 + desktop = [Desktop desktop];
39 + app = [NSApplication sharedApplication];
43 diff -ur orig-GWorkspace-0.6.5/Finder/main.m GWorkspace-0.6.5/Finder/main.m
44 --- orig-GWorkspace-0.6.5/Finder/main.m 2004-04-13 17:23:41.000000000 -0600
45 +++ GWorkspace-0.6.5/Finder/main.m 2004-11-09 02:50:21.898824742 -0700
47 int main(int argc, char **argv, char **env)
49 CREATE_AUTORELEASE_POOL (pool);
50 - Finder *finder = [Finder finder];
51 - NSApplication *app = [NSApplication sharedApplication];
55 +#ifdef GS_PASS_ARGUMENTS
56 + [NSProcessInfo initializeWithArguments: argv count: argc environment: env];
59 + finder = [Finder finder];
60 + app = [NSApplication sharedApplication];
64 diff -ur orig-GWorkspace-0.6.5/GWNet/main.m GWorkspace-0.6.5/GWNet/main.m
65 --- orig-GWorkspace-0.6.5/GWNet/main.m 2004-01-20 06:21:31.000000000 -0700
66 +++ GWorkspace-0.6.5/GWNet/main.m 2004-11-09 02:50:21.898824742 -0700
68 int main(int argc, char **argv, char **env)
70 CREATE_AUTORELEASE_POOL (pool);
71 - GWNet *gwnet = [GWNet gwnet];
72 - NSApplication *app = [NSApplication sharedApplication];
76 +#ifdef GS_PASS_ARGUMENTS
77 + [NSProcessInfo initializeWithArguments: argv count: argc environment: env];
80 + gwnet = [GWNet gwnet];
81 + app = [NSApplication sharedApplication];
85 diff -ur orig-GWorkspace-0.6.5/GWorkspace/main.m GWorkspace-0.6.5/GWorkspace/main.m
86 --- orig-GWorkspace-0.6.5/GWorkspace/main.m 2004-05-17 04:42:29.000000000 -0600
87 +++ GWorkspace-0.6.5/GWorkspace/main.m 2004-11-09 02:50:21.898824742 -0700
89 int main(int argc, char **argv, char **env)
91 CREATE_AUTORELEASE_POOL (pool);
92 - GWorkspace *gw = [GWorkspace gworkspace];
93 - NSApplication *app = [NSApplication sharedApplication];
97 +#ifdef GS_PASS_ARGUMENTS
98 + [NSProcessInfo initializeWithArguments: argv count: argc environment: env];
101 + gw = [GWorkspace gworkspace];
102 + app = [NSApplication sharedApplication];
106 diff -ur orig-GWorkspace-0.6.5/Inspector/main.m GWorkspace-0.6.5/Inspector/main.m
107 --- orig-GWorkspace-0.6.5/Inspector/main.m 2004-02-19 18:03:49.000000000 -0700
108 +++ GWorkspace-0.6.5/Inspector/main.m 2004-11-09 02:50:21.898824742 -0700
110 int main(int argc, char **argv, char **env)
112 CREATE_AUTORELEASE_POOL (pool);
113 - Inspector *inspector = [Inspector inspector];
114 - NSApplication *app = [NSApplication sharedApplication];
115 + Inspector *inspector;
116 + NSApplication *app;
118 +#ifdef GS_PASS_ARGUMENTS
119 + [NSProcessInfo initializeWithArguments: argv count: argc environment: env];
122 + inspector = [Inspector inspector];
123 + app = [NSApplication sharedApplication];
127 diff -ur orig-GWorkspace-0.6.5/Operation/main.m GWorkspace-0.6.5/Operation/main.m
128 --- orig-GWorkspace-0.6.5/Operation/main.m 2004-03-08 06:09:17.000000000 -0700
129 +++ GWorkspace-0.6.5/Operation/main.m 2004-11-09 02:50:21.899824603 -0700
131 int main(int argc, char **argv, char **env)
133 CREATE_AUTORELEASE_POOL (pool);
134 - Operation *operation = [Operation operation];
135 - NSApplication *app = [NSApplication sharedApplication];
136 + Operation *operation;
137 + NSApplication *app;
139 +#ifdef GS_PASS_ARGUMENTS
140 + [NSProcessInfo initializeWithArguments: argv count: argc environment: env];
143 + operation = [Operation operation];
144 + app = [NSApplication sharedApplication];
148 diff -ur orig-GWorkspace-0.6.5/Utilities/findfile/findfile.m GWorkspace-0.6.5/Utilities/findfile/findfile.m
149 --- orig-GWorkspace-0.6.5/Utilities/findfile/findfile.m 2003-09-26 04:25:38.000000000 -0600
150 +++ GWorkspace-0.6.5/Utilities/findfile/findfile.m 2004-11-09 02:54:24.510959690 -0700
151 @@ -429,11 +429,16 @@
155 -int main(int argc, char** argv)
156 +int main(int argc, char** argv, char** env)
160 CREATE_AUTORELEASE_POOL (pool);
162 +#ifdef GS_PASS_ARGUMENTS
163 + [NSProcessInfo initializeWithArguments: argv count: argc environment: env];
166 findfile = [[FindFile alloc] init];
169 diff -ur orig-GWorkspace-0.6.5/Utilities/fswatcher/fswatcher.m GWorkspace-0.6.5/Utilities/fswatcher/fswatcher.m
170 --- orig-GWorkspace-0.6.5/Utilities/fswatcher/fswatcher.m 2004-04-14 04:33:21.000000000 -0600
171 +++ GWorkspace-0.6.5/Utilities/fswatcher/fswatcher.m 2004-11-09 02:54:08.381211163 -0700
176 -int main(int argc, char** argv)
177 +int main(int argc, char** argv, char** env)
186 +#ifdef GS_PASS_ARGUMENTS
187 + [NSProcessInfo initializeWithArguments: argv count: argc environment: env];
190 CREATE_AUTORELEASE_POOL (pool);
191 fsw = [[FSWatcher alloc] init];
192 diff -ur orig-GWorkspace-0.6.5/Utilities/thumbnailer/main.m GWorkspace-0.6.5/Utilities/thumbnailer/main.m
193 --- orig-GWorkspace-0.6.5/Utilities/thumbnailer/main.m 2003-09-26 04:25:38.000000000 -0600
194 +++ GWorkspace-0.6.5/Utilities/thumbnailer/main.m 2004-11-09 02:54:42.041512685 -0700
200 +#ifdef GS_PASS_ARGUMENTS
201 + [NSProcessInfo initializeWithArguments: argv count: argc environment: env_c];
204 pool = [NSAutoreleasePool new];
205 thumbnailer = [[Thumbnailer alloc] init];
206 diff -ur orig-GWorkspace-0.6.5/Utilities/wopen/wopen.m GWorkspace-0.6.5/Utilities/wopen/wopen.m
207 --- orig-GWorkspace-0.6.5/Utilities/wopen/wopen.m 2003-07-12 07:42:09.000000000 -0600
208 +++ GWorkspace-0.6.5/Utilities/wopen/wopen.m 2004-11-09 02:54:56.042558347 -0700
210 NSString *fullPath = nil;
214 +#ifdef GS_PASS_ARGUMENTS
215 + [NSProcessInfo initializeWithArguments: argv count: argc environment: env_c];
218 pool = [NSAutoreleasePool new];
219 fm = [NSFileManager defaultManager];