Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'Change a program's menu bar name' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Change a program's menu bar name
Authored by: petersconsult on Nov 25, '09 01:50:19AM
This certainly would break code signing, but luckily, it's pretty easy to re-sign an app yourself:

Here is how you re-sign any app (although this is not really a hint because it is plainly documented, maybe we should post it as such, considering the number of hints that involve modifying application packages):

It is simply a two-step process..
First, you need to create a Code Signing certificate in Keychain Access.
To do so, open Keychain Access, then from the Keychain Access menu, select Certificate Assistant --> Create a Certificate...
In the Name field enter your desired CertificateName (try to make it unique to avoid stepping on the toes of a real certificate), and in the Certificate Type menu, select Code Signing
Hit continue, and you're done with that part
see here for more info:

Then, you open Terminal (do *not* 'sudo su' for this!) and type:
codesign -s CertificateName -f PathToYourApp

To check the status of your 'signing', type the following:
codesign -dvvvv PathToYourApp
I hope this helps!

[ Reply to This | # ]
Change a program's menu bar name
Authored by: iKenndac on Nov 26, '09 05:07:37AM

Unfortunately, while you *can* re-sign an application in the manner you describe, doing it that way is completely useless.

Mac OS X uses Code Signing to, amongst other things, verify that a new version of an application comes from the *same* source as the original one. Re-signing in the manner you describe essentially "proves" to the system the the application is, in fact, NOT from the original signing authority.

This doesn't do much now but cause the Keychain to revoke the application's access to its stored Keychain items, prompting the user to re-authorise the application to use the Keychain again - precisely the thing a valid signature is designed to prevent.

However, further down the line in 10.7, 10.8 or whatever when Code Signing is tightly integrated with the system like it is with the iPhone (signing an iPhone app in the manner you describe will cause it to not work at *all*), re-signing apps in this manner will cause no end of troubles.

[ Reply to This | # ]
Change a program's menu bar name
Authored by: petersconsult on Nov 26, '09 01:56:05PM
Ineed, but ann application one hacks like this is not usually the kind that can be updated using Software Update.
On the other hand, having to re-authorize an application in keychain is a bore, but it beats having an app that has, at best, a crippled access to the Keychain -- see the discussion about Safari Beta (with Tabs on Top) here:
I'm not saying that this is a permanent solution, after all, nothing here really is... But it really helps when you really need to hack an application, and still want it to be able to access the keychain as it used to...
Happy Thanksgiving!

[ Reply to This | # ]