Changeset 17836
- Timestamp:
- 06/14/06 08:31:46 (2 years ago)
- Location:
- haiku/trunk/src/kits
- Files:
-
- 2 modified
-
app/Application.cpp (modified) (1 diff)
-
storage/mime/CreateAppMetaMimeThread.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
haiku/trunk/src/kits/app/Application.cpp
r17797 r17836 331 331 } else 332 332 appInfo.port = fMsgPort; 333 // check the signature and correct it, if necessary 334 if (strc asecmp(appInfo.signature, fAppName))333 // check the signature and correct it, if necessary, also the case 334 if (strcmp(appInfo.signature, fAppName)) 335 335 BRoster::Private().SetSignature(team, fAppName); 336 336 // complete the registration -
haiku/trunk/src/kits/storage/mime/CreateAppMetaMimeThread.cpp
r17661 r17836 55 55 return status; 56 56 57 BPath path;58 status = path.SetTo(ref);59 if (status < B_OK)60 return status;61 62 57 // Read the app sig (which consequently keeps us from updating 63 58 // non-applications, since we get an error if the file has no … … 78 73 mime.Install(); 79 74 80 signature.ToLower(); 81 // Signatures and MIME types are case insensitive 75 BString path = "/"; 76 path.Append(signature); 77 path.ToLower(); 78 // Signatures and MIME types are case insensitive, but we want to 79 // preserve the case wherever possible 80 path.Prepend(kDatabaseDir.c_str()); 82 81 83 char metaMimePath[B_PATH_NAME_LENGTH]; 84 sprintf(metaMimePath, "%s/%s", kDatabaseDir.c_str(), signature.String()); 85 86 status = typeNode.SetTo(metaMimePath); 82 status = typeNode.SetTo(path.String()); 87 83 if (status < B_OK) 88 84 return status; … … 90 86 // Preferred App 91 87 attr_info info; 92 if (status == B_OK && (fForce || typeNode.GetAttrInfo(kPreferredAppAttr, &info) != B_OK)) {88 if (status == B_OK && (fForce || typeNode.GetAttrInfo(kPreferredAppAttr, &info) != B_OK)) 93 89 status = mime.SetPreferredApp(signature.String()); 94 } 90 95 91 // Short Description (name of the application) 96 if (status == B_OK && (fForce || typeNode.GetAttrInfo(kShortDescriptionAttr, &info) != B_OK)) {97 status = mime.SetShortDescription( path.Leaf());98 } 92 if (status == B_OK && (fForce || typeNode.GetAttrInfo(kShortDescriptionAttr, &info) != B_OK)) 93 status = mime.SetShortDescription(ref->name); 94 99 95 // App Hint 100 if (status == B_OK && (fForce || typeNode.GetAttrInfo(kAppHintAttr, &info) != B_OK)) {96 if (status == B_OK && (fForce || typeNode.GetAttrInfo(kAppHintAttr, &info) != B_OK)) 101 97 status = mime.SetAppHint(ref); 102 }103 98 104 99 // Mini Icon
