Skip to content

Conversation

@jonasschnelli
Copy link
Contributor

Reverts the renaming of the app bundle, uses "Bitcoin Core" as CFBundleDisplayName and keeps "Bitcoin-Core" as disk image name and title.

@Diapolo
Copy link

Diapolo commented Jun 1, 2015

Were there problems with the new name?

@jonasschnelli
Copy link
Contributor Author

@Diapolo: see #6212

@laanwj
Copy link
Member

laanwj commented Jun 1, 2015

@Diapolo the problem seems to be that there is no upgrade path for applications that change name. People will end up with two versions installed, which can be problematic.It's kind of unfortunate.

@laanwj
Copy link
Member

laanwj commented Jun 2, 2015

@jonasschnelli had any luck with the CFBundleDisplayName?

@jonasschnelli
Copy link
Contributor Author

Start working on it in about 4h.

@jonasschnelli
Copy link
Contributor Author

Found a solution to keep the application bundle name "Bitcoin-Qt.app" while using "Bitcoin Core" as display name. I'm now forming a proper commit and test it over gitian.

@laanwj
Copy link
Member

laanwj commented Jun 2, 2015

Very nice!

@jonasschnelli
Copy link
Contributor Author

Credits goes to @theuni for sketching this approach. Thanks.

@theuni
Copy link
Member

theuni commented Jun 2, 2015

Glad this actually worked!

What's the reason for not just adding Base.lproj/InfoPlist.strings in git, though? Looks like we were faking it before with Resources/empty.lproj, but now that we actually have something to put in there, may as well just commit the files and copy them into the bundle during creation.

@jonasschnelli
Copy link
Contributor Author

The nice thing with faking the file during the make process is that we not add another file containing a static string for the application name. But I agree it's a bit of a hack.

There is also a problem with .DS_Store (positioning) I'd like to fix.
I think this PR is ready by tmr.

@jonasschnelli jonasschnelli force-pushed the 2015/06/revert_renaming branch from e6e064b to e6be441 Compare June 2, 2015 18:20
@jonasschnelli jonasschnelli changed the title [OSX] revert renaming of Bitcoin-Qt.app (partial revert of #6116) [OSX] revert renaming of Bitcoin-Qt.app and use CFBundleDisplayName (partial revert of #6116) Jun 2, 2015
@jonasschnelli jonasschnelli force-pushed the 2015/06/revert_renaming branch 7 times, most recently from 31c0718 to c5773bb Compare June 3, 2015 07:29
@jonasschnelli
Copy link
Contributor Author

This is PR final now
Test dmg: https://builds.jonasschnelli.ch/pulls/6214/

Application name shows "Bitcoin Core" but the application bundles name is still "Bitcoin-Qt.app". If you drag "Bitcoin Core" to your /Applications dir, it will ask you if you like to overwrite "Bitcoin-Qt.app".

Prove screens:
OSX10.10
bildschirmfoto 2015-06-03 um 09 38 51

OSX10.7
bildschirmfoto 2015-06-03 um 09 39 54

@fanquake
Copy link
Member

fanquake commented Jun 3, 2015

@theuni @jonasschnelli awesome work, will test shortly.

@jonasschnelli jonasschnelli force-pushed the 2015/06/revert_renaming branch from c5773bb to 0a32a93 Compare June 3, 2015 08:06
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the records: this is required so that the OS can detect a manual rename of the application. If current (manually renamed) application name is != CFBundleName, it won't use localization over Base.lproj to rename the application display name.

@laanwj laanwj added the macOS label Jun 3, 2015
@laanwj laanwj merged commit 0a32a93 into bitcoin:master Jun 3, 2015
laanwj added a commit that referenced this pull request Jun 3, 2015
0a32a93 OSX: use "Bitcoin Core" as Bundle Display Name (Jonas Schnelli)
a2241ea [OSX] revert renaming of Bitcoin-Qt.app (Jonas Schnelli)
@laanwj
Copy link
Member

laanwj commented Jun 3, 2015

Backported to 0.11 via 4d435d1 6145fdf .

laanwj pushed a commit that referenced this pull request Jun 3, 2015
laanwj pushed a commit that referenced this pull request Jun 3, 2015
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants