version 1.2, 2006/03/06 08:55:31 |
version 1.4, 2016/09/30 04:41:07 |
|
|
[super dealloc]; |
[super dealloc]; |
} |
} |
+(int) checkX { |
+(int) checkX { |
|
return 1; |
|
// I need a sample code for runningApplications. 2016.09.30 |
|
/* |
NSEnumerator *apps = [[[NSWorkspace sharedWorkspace] launchedApplications] objectEnumerator ]; |
NSEnumerator *apps = [[[NSWorkspace sharedWorkspace] launchedApplications] objectEnumerator ]; |
NSDictionary *dicApp; |
NSDictionary *dicApp; |
while (dicApp = [apps nextObject]) { |
while (dicApp = [apps nextObject]) { |
|
|
} |
} |
NSLog(@"X11 is NOT running.\n"); |
NSLog(@"X11 is NOT running.\n"); |
return 0; |
return 0; |
|
*/ |
} |
} |
-(void) showForDebug { |
-(void) showForDebug { |
NSLog(@"OpenXM_HOME=%@\n",OpenXM_HOME); |
NSLog(@"OpenXM_HOME=%@\n",OpenXM_HOME); |
|
|
-(NSDictionary *)getMyDefaultTypingAttributes { |
-(NSDictionary *)getMyDefaultTypingAttributes { |
return myDefaultTypingAttributes; |
return myDefaultTypingAttributes; |
} |
} |
|
+(int) isX11Installed { |
|
NSFileManager *manager = [NSFileManager defaultManager]; |
|
if ([manager fileExistsAtPath: @"/usr/X11R6/bin/X"]) return 1; |
|
else return 0; |
|
} |
|
+(int) isGccInstalled { |
|
NSFileManager *manager = [NSFileManager defaultManager]; |
|
if ([manager fileExistsAtPath: @"/usr/bin/gcc"]) return 1; |
|
else return 0; |
|
} |
|
|
|
|
|
|
@end |
@end |