]> git.pld-linux.org Git - packages/GWorkspace.git/blame - GWorkspace-initWithArguments.patch
- drop obsolete files
[packages/GWorkspace.git] / GWorkspace-initWithArguments.patch
CommitLineData
da36a69f 1diff -Nur GWorkspace-0.8.6.orig/GWMetadata/MDFinder/main.m GWorkspace-0.8.6.initWithArguments/GWMetadata/MDFinder/main.m
2--- GWorkspace-0.8.6.orig/GWMetadata/MDFinder/main.m 2007-01-07 04:39:04.000000000 -0700
3+++ GWorkspace-0.8.6.initWithArguments/GWMetadata/MDFinder/main.m 2008-11-19 22:03:02.000000000 -0700
4@@ -29,7 +29,13 @@
69f8618b 5 int main(int argc, char **argv, char **env)
6 {
7 CREATE_AUTORELEASE_POOL (pool);
69f8618b 8- NSApplication *app = [NSApplication sharedApplication];
69f8618b 9+ NSApplication *app;
69f8618b 10+#ifdef GS_PASS_ARGUMENTS
11+ [NSProcessInfo initializeWithArguments: argv count: argc environment: env];
12+#endif
69f8618b 13+
da36a69f 14+ app = [NSApplication sharedApplication];
69f8618b 15+
da36a69f 16
17 [app setDelegate: [MDFinder mdfinder]];
18 [app run];
19diff -Nur GWorkspace-0.8.6.orig/GWorkspace/main.m GWorkspace-0.8.6.initWithArguments/GWorkspace/main.m
20--- GWorkspace-0.8.6.orig/GWorkspace/main.m 2006-06-26 05:34:07.000000000 -0600
21+++ GWorkspace-0.8.6.initWithArguments/GWorkspace/main.m 2008-11-19 22:03:02.000000000 -0700
22@@ -30,8 +30,15 @@
69f8618b 23 int main(int argc, char **argv, char **env)
24 {
25 CREATE_AUTORELEASE_POOL (pool);
da36a69f 26- GWorkspace *gw = [GWorkspace gworkspace];
69f8618b 27- NSApplication *app = [NSApplication sharedApplication];
da36a69f 28+ GWorkspace *gw;
69f8618b 29+ NSApplication *app;
30+
31+#ifdef GS_PASS_ARGUMENTS
32+ [NSProcessInfo initializeWithArguments: argv count: argc environment: env];
33+#endif
34+
da36a69f 35+ gw = [GWorkspace gworkspace];
69f8618b 36+ app = [NSApplication sharedApplication];
37
da36a69f 38 [app setDelegate: gw];
39 [app run];
da36a69f 40diff -Nur GWorkspace-0.8.6.orig/Recycler/main.m GWorkspace-0.8.6.initWithArguments/Recycler/main.m
41--- GWorkspace-0.8.6.orig/Recycler/main.m 2006-06-20 10:53:53.000000000 -0600
42+++ GWorkspace-0.8.6.initWithArguments/Recycler/main.m 2008-11-19 22:03:02.000000000 -0700
43@@ -32,6 +32,9 @@
69f8618b 44 int main(int argc, char **argv, char **env)
45 {
46 CREATE_AUTORELEASE_POOL (pool);
69f8618b 47+#ifdef GS_PASS_ARGUMENTS
48+ [NSProcessInfo initializeWithArguments: argv count: argc environment: env];
49+#endif
da36a69f 50 Recycler *recycler = [Recycler recycler];
51 NSApplication *app = [NSApplication sharedApplication];
52
53diff -Nur GWorkspace-0.8.6.orig/Tools/ddbd/ddbd.m GWorkspace-0.8.6.initWithArguments/Tools/ddbd/ddbd.m
54--- GWorkspace-0.8.6.orig/Tools/ddbd/ddbd.m 2007-02-07 05:36:10.000000000 -0700
55+++ GWorkspace-0.8.6.initWithArguments/Tools/ddbd/ddbd.m 2008-11-19 22:03:02.000000000 -0700
56@@ -496,9 +496,13 @@
57 }
58
59
60-int main(int argc, char** argv)
61+int main(int argc, char** argv, char** env)
69f8618b 62 {
da36a69f 63 CREATE_AUTORELEASE_POOL(pool);
69f8618b 64+#ifdef GS_PASS_ARGUMENTS
da36a69f 65+ [NSProcessInfo initializeWithArguments: argv count: argc environment:
66+env];
69f8618b 67+#endif
da36a69f 68 NSProcessInfo *info = [NSProcessInfo processInfo];
69 NSMutableArray *args = AUTORELEASE ([[info arguments] mutableCopy]);
70 static BOOL is_daemon = NO;
71diff -Nur GWorkspace-0.8.6.orig/Tools/fswatcher/fswatcher-inotify.m GWorkspace-0.8.6.initWithArguments/Tools/fswatcher/fswatcher-inotify.m
72--- GWorkspace-0.8.6.orig/Tools/fswatcher/fswatcher-inotify.m 2007-03-07 17:57:26.000000000 -0700
73+++ GWorkspace-0.8.6.initWithArguments/Tools/fswatcher/fswatcher-inotify.m 2008-11-19 22:03:02.000000000 -0700
74@@ -1041,6 +1041,10 @@
75 int main(int argc, char** argv)
69f8618b 76 {
da36a69f 77 CREATE_AUTORELEASE_POOL(pool);
69f8618b 78+#ifdef GS_PASS_ARGUMENTS
da36a69f 79+ [NSProcessInfo initializeWithArguments: argv count: argc environment:
80+env];
69f8618b 81+#endif
da36a69f 82 NSProcessInfo *info = [NSProcessInfo processInfo];
83 NSMutableArray *args = AUTORELEASE ([[info arguments] mutableCopy]);
84 static BOOL is_daemon = NO;
85diff -Nur GWorkspace-0.8.6.orig/Tools/fswatcher/fswatcher.m GWorkspace-0.8.6.initWithArguments/Tools/fswatcher/fswatcher.m
86--- GWorkspace-0.8.6.orig/Tools/fswatcher/fswatcher.m 2007-02-16 11:41:00.000000000 -0700
87+++ GWorkspace-0.8.6.initWithArguments/Tools/fswatcher/fswatcher.m 2008-11-19 22:03:02.000000000 -0700
88@@ -825,9 +825,13 @@
89 @end
90
91
92-int main(int argc, char** argv)
93+int main(int argc, char** argv, char** env)
69f8618b 94 {
da36a69f 95 CREATE_AUTORELEASE_POOL(pool);
69f8618b 96+#ifdef GS_PASS_ARGUMENTS
da36a69f 97+ [NSProcessInfo initializeWithArguments: argv count: argc environment:
98+env];
69f8618b 99+#endif
da36a69f 100 NSProcessInfo *info = [NSProcessInfo processInfo];
101 NSMutableArray *args = AUTORELEASE ([[info arguments] mutableCopy]);
102 static BOOL is_daemon = NO;
103diff -Nur GWorkspace-0.8.6.orig/Tools/lsfupdater/lsfupdater.m GWorkspace-0.8.6.initWithArguments/Tools/lsfupdater/lsfupdater.m
104--- GWorkspace-0.8.6.orig/Tools/lsfupdater/lsfupdater.m 2006-10-14 06:15:45.000000000 -0600
105+++ GWorkspace-0.8.6.initWithArguments/Tools/lsfupdater/lsfupdater.m 2008-11-19 22:03:02.000000000 -0700
106@@ -1192,9 +1192,14 @@
2a82e7bc 107 @end
108
da36a69f 109
2a82e7bc 110-int main(int argc, char** argv)
111+int main(int argc, char** argv, char** env)
112 {
69f8618b 113 CREATE_AUTORELEASE_POOL (pool);
69f8618b 114+#ifdef GS_PASS_ARGUMENTS
da36a69f 115+ [NSProcessInfo initializeWithArguments: argv count: argc environment:
116+env];
69f8618b 117+#endif
118+
69f8618b 119
da36a69f 120 if (argc > 1) {
121 NSString *conname = [NSString stringWithCString: argv[1]];
122diff -Nur GWorkspace-0.8.6.orig/Tools/searchtool/searchtool.m GWorkspace-0.8.6.initWithArguments/Tools/searchtool/searchtool.m
123--- GWorkspace-0.8.6.orig/Tools/searchtool/searchtool.m 2006-10-14 06:12:12.000000000 -0600
124+++ GWorkspace-0.8.6.initWithArguments/Tools/searchtool/searchtool.m 2008-11-19 22:03:02.000000000 -0700
125@@ -394,9 +394,12 @@
2a82e7bc 126 @end
127
128
129-int main(int argc, char** argv)
130+int main(int argc, char** argv, char** env)
131 {
da36a69f 132 CREATE_AUTORELEASE_POOL (pool);
69f8618b 133+#ifdef GS_PASS_ARGUMENTS
134+ [NSProcessInfo initializeWithArguments: argv count: argc environment: env];
135+#endif
136
da36a69f 137 if (argc > 1) {
138 NSString *conname = [NSString stringWithCString: argv[1]];
139diff -Nur GWorkspace-0.8.6.orig/Tools/thumbnailer/main.m GWorkspace-0.8.6.initWithArguments/Tools/thumbnailer/main.m
140--- GWorkspace-0.8.6.orig/Tools/thumbnailer/main.m 2006-06-20 10:52:02.000000000 -0600
141+++ GWorkspace-0.8.6.initWithArguments/Tools/thumbnailer/main.m 2008-11-19 22:03:02.000000000 -0700
142@@ -654,9 +654,12 @@
143
144 @end
145
146-int main(int argc, char** argv)
147+int main(int argc, char** argv, char** env)
148 {
149 CREATE_AUTORELEASE_POOL(pool);
69f8618b 150+#ifdef GS_PASS_ARGUMENTS
da36a69f 151+ [NSProcessInfo initializeWithArguments: argv count: argc environment: env];
69f8618b 152+#endif
da36a69f 153 NSProcessInfo *info = [NSProcessInfo processInfo];
154 NSMutableArray *args = AUTORELEASE ([[info arguments] mutableCopy]);
155 static BOOL is_daemon = NO;
156diff -Nur GWorkspace-0.8.6.orig/Tools/wopen/wopen.m GWorkspace-0.8.6.initWithArguments/Tools/wopen/wopen.m
157--- GWorkspace-0.8.6.orig/Tools/wopen/wopen.m 2006-06-20 10:51:37.000000000 -0600
158+++ GWorkspace-0.8.6.initWithArguments/Tools/wopen/wopen.m 2008-11-19 22:03:16.000000000 -0700
159@@ -36,6 +36,10 @@
69f8618b 160 NSString *fullPath = nil;
161 BOOL isDir = NO;
162 id gworkspace = nil;
163+
164+#ifdef GS_PASS_ARGUMENTS
2a82e7bc 165+ [NSProcessInfo initializeWithArguments: argv count: argc environment: env_c];
69f8618b 166+#endif
167
168 pool = [NSAutoreleasePool new];
169 fm = [NSFileManager defaultManager];
This page took 0.150651 seconds and 4 git commands to generate.