Changeset 127 for trunk/launch/launch/main.c
- Timestamp:
- 03/17/03 09:56:42 (21 years ago)
- Location:
- trunk/launch
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/launch
- Property svn:ignore
-
old new 3 3 openUp 4 4 launch-* 5 .DS_Store
-
- Property svn:ignore
-
trunk/launch/launch/main.c
r52 r127 3 3 Nicholas Riley <launchsw@sabi.net> 4 4 5 Copyright (c) 200 2, Nicholas Riley5 Copyright (c) 2001-03, Nicholas Riley 6 6 All rights reserved. 7 7 … … 56 56 const char *APP_NAME; 57 57 58 #define VERSION "1.0b 1"58 #define VERSION "1.0b2" 59 59 60 60 #define STRBUF_LEN 1024 … … 101 101 // Misc. errors 102 102 { procNotFound, "unable to connect to system service.\nAre you logged in?" }, 103 { 1001, "SystemConfiguration nonspecific failure.\nAre you logged in?" },103 { kCGErrorIllegalArgument, "window server error.\nAre you logged in?" }, 104 104 { fnfErr, "file not found" }, 105 105 { 0, NULL } … … 131 131 "'document' may be a file, folder, or disk - whatever the application can open.\n" 132 132 "'item' may be a file, folder, disk, or URL.\n\n"); 133 fprintf(stderr, "launch "VERSION" (c) 2001-0 2Nicholas Riley <http://web.sabi.net/nriley/software/>.\n"133 fprintf(stderr, "launch "VERSION" (c) 2001-03 Nicholas Riley <http://web.sabi.net/nriley/software/>.\n" 134 134 "Please send bugs, suggestions, etc. to <launchsw@sabi.net>.\n"); 135 135 … … 678 678 printf("\tbundle ID: %s\n", tmpBuffer); 679 679 } 680 // prefer a short version string, e.g. "1.0 Beta" instead of "51" for Safari 681 CFStringRef appVersion = CFBundleGetValueForInfoDictionaryKey(bundle, CFSTR("CFBundleShortVersionString")); 682 if (appVersion == NULL) 683 appVersion = CFBundleGetValueForInfoDictionaryKey(bundle, kCFBundleVersionKey); 684 if (appVersion != NULL) { 685 UInt32 intVersion = CFBundleGetVersionNumber(bundle); 686 CFStringGetCString(appVersion, tmpBuffer, STRBUF_LEN, CFStringGetSystemEncoding()); 687 printf("\tversion: %s", tmpBuffer); 688 if (intVersion != 0) printf(" [0x%lx = %lu]", intVersion, intVersion); 689 putchar('\n'); 690 } 680 691 CFRelease(bundle); 681 692 }
Note:
See TracChangeset
for help on using the changeset viewer.