]> git.pld-linux.org Git - packages/GWorkspace.git/blob - GWorkspace-initWithArguments.patch
- drop obsolete files
[packages/GWorkspace.git] / GWorkspace-initWithArguments.patch
1 diff -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 @@
5  int main(int argc, char **argv, char **env)
6  {
7         CREATE_AUTORELEASE_POOL (pool);
8 -       NSApplication *app = [NSApplication sharedApplication];
9 +       NSApplication *app;
10 +#ifdef GS_PASS_ARGUMENTS
11 +  [NSProcessInfo initializeWithArguments: argv count: argc environment: env];
12 +#endif
13 +
14 +  app = [NSApplication sharedApplication];
15 +
16         
17    [app setDelegate: [MDFinder mdfinder]];    
18         [app run];
19 diff -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 @@
23  int main(int argc, char **argv, char **env)
24  {
25         CREATE_AUTORELEASE_POOL (pool);
26 -  GWorkspace *gw = [GWorkspace gworkspace];
27 -       NSApplication *app = [NSApplication sharedApplication];
28 +  GWorkspace *gw;
29 +       NSApplication *app;
30 +
31 +#ifdef GS_PASS_ARGUMENTS
32 +  [NSProcessInfo initializeWithArguments: argv count: argc environment: env];
33 +#endif
34 +
35 +       gw      = [GWorkspace gworkspace];
36 +       app = [NSApplication sharedApplication];
37    
38    [app setDelegate: gw];    
39         [app run];
40 diff -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 @@
44  int main(int argc, char **argv, char **env)
45  {
46         CREATE_AUTORELEASE_POOL (pool);
47 +#ifdef GS_PASS_ARGUMENTS
48 +  [NSProcessInfo initializeWithArguments: argv count: argc environment: env];
49 +#endif
50    Recycler *recycler = [Recycler recycler];
51         NSApplication *app = [NSApplication sharedApplication];
52  
53 diff -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)
62  {
63    CREATE_AUTORELEASE_POOL(pool);
64 +#ifdef GS_PASS_ARGUMENTS
65 +  [NSProcessInfo initializeWithArguments: argv count: argc environment:
66 +env];
67 +#endif
68    NSProcessInfo *info = [NSProcessInfo processInfo];
69    NSMutableArray *args = AUTORELEASE ([[info arguments] mutableCopy]);
70    static BOOL  is_daemon = NO;
71 diff -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)
76  {
77    CREATE_AUTORELEASE_POOL(pool);
78 +#ifdef GS_PASS_ARGUMENTS
79 +  [NSProcessInfo initializeWithArguments: argv count: argc environment:
80 +env];
81 +#endif
82    NSProcessInfo *info = [NSProcessInfo processInfo];
83    NSMutableArray *args = AUTORELEASE ([[info arguments] mutableCopy]);
84    static BOOL  is_daemon = NO;
85 diff -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)
94  {
95    CREATE_AUTORELEASE_POOL(pool);
96 +#ifdef GS_PASS_ARGUMENTS
97 +  [NSProcessInfo initializeWithArguments: argv count: argc environment:
98 +env];
99 +#endif
100    NSProcessInfo *info = [NSProcessInfo processInfo];
101    NSMutableArray *args = AUTORELEASE ([[info arguments] mutableCopy]);
102    static BOOL  is_daemon = NO;
103 diff -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 @@
107  @end
108  
109  
110 -int main(int argc, char** argv)
111 +int main(int argc, char** argv, char** env)
112  {
113    CREATE_AUTORELEASE_POOL (pool);
114 +#ifdef GS_PASS_ARGUMENTS
115 +  [NSProcessInfo initializeWithArguments: argv count: argc environment:
116 +env];
117 +#endif
118 +
119    
120    if (argc > 1) {
121      NSString *conname = [NSString stringWithCString: argv[1]];
122 diff -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 @@
126  @end
127  
128  
129 -int main(int argc, char** argv)
130 +int main(int argc, char** argv, char** env)
131  {
132    CREATE_AUTORELEASE_POOL (pool);
133 +#ifdef GS_PASS_ARGUMENTS
134 +  [NSProcessInfo initializeWithArguments: argv count: argc environment: env];
135 +#endif
136    
137    if (argc > 1) {
138      NSString *conname = [NSString stringWithCString: argv[1]];
139 diff -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);
150 +#ifdef GS_PASS_ARGUMENTS
151 +  [NSProcessInfo initializeWithArguments: argv count: argc environment: env];
152 +#endif
153    NSProcessInfo *info = [NSProcessInfo processInfo];
154    NSMutableArray *args = AUTORELEASE ([[info arguments] mutableCopy]);
155    static BOOL  is_daemon = NO;
156 diff -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 @@
160    NSString *fullPath = nil;
161    BOOL isDir = NO;
162    id gworkspace = nil;
163 +
164 +#ifdef GS_PASS_ARGUMENTS
165 +  [NSProcessInfo initializeWithArguments: argv count: argc environment: env_c];
166 +#endif
167     
168    pool = [NSAutoreleasePool new];
169    fm = [NSFileManager defaultManager];
This page took 0.211423 seconds and 4 git commands to generate.