-
Notifications
You must be signed in to change notification settings - Fork 38.7k
Install icon & .desktop file to XDG data #15068
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Build fails with |
|
Could the |
|
@MarcoFalke Why? It's part of the git branch... |
|
Concept ACK, this the better way to do it IMO than installing it with the packaging. |
|
@hebasto After this PR, I don't see why not. |
|
Concept ACK. |
|
Regarding the build system issue, it looks like the icon is not part of |
|
Concept ACK
Do we want to set the standard Bitcoin icon? IMO Bitcoin Core is a specific application and not sure if that icon should be the default "Bitcoin Icon". |
|
There we go, Travis is happy now. Shall I squash? |
|
@jonasschnelli Bitcoin Core doesn't have its own icon at this time - we've always used the generic Bitcoin icon. When/if it does, then the PR adding it can change to use that instead... |
|
The file name
|
| Encoding=UTF-8 | ||
| Version=1.0 | ||
| Name=@PACKAGE_NAME@ | ||
| GenericName=Bitcoin full node@AND_WALLET@ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Localized [Comment] strings imply localized [GenericName] strings as well :)
| Type=Application | ||
| Icon=bitcoin128 | ||
| MimeType=x-scheme-handler/bitcoin; | ||
| Categories=Office;Finance;P2P;Network;Qt; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is Office a relevant category?
| Comment[fr]=Bitcoin, monnaie virtuelle cryptographique pair à pair | ||
| Comment[tr]=Bitcoin, eşten eşe kriptografik sanal para birimi | ||
| TryExec=bitcoin-qt | ||
| Exec=bitcoin-qt %u |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
%u will not be recognized by bitcoin-qt:
%u- A single URL. Local files may either be passed as file: URLs or as file path.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not? We expect URIs.
| @@ -0,0 +1,17 @@ | |||
| [Desktop Entry] | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not use the same key order as described in Desktop Entry Specification?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file predates the PR. It's just being restored at this time.
| @@ -0,0 +1,17 @@ | |||
| [Desktop Entry] | |||
| Encoding=UTF-8 | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
Encodingkey is deprecated.
|
I think what he means is the second part, suggesting replacing |
|
Ok, renamed it |
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ConflictsReviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first. |
|
Consider adding a appdata as in EDIT: Correct link https://github.com/flathub/org.bitcoincore.bitcoin-qt/blob/master/org.bitcoincore.bitcoin-qt.metainfo.xml |
|
The alternative approach is bitcoin-core/gui#38 that does not require |
The latter is the common icon name used everywhere
|
Rebased |
|
Sorry about that, here is the working link. Which I just realized needs the 0.20.1 release. |
|
Which XDG standard defines this? |
|
|
🐙 This pull request conflicts with the target branch and needs rebase. Want to unsubscribe from rebase notifications on this pull request? Just convert this pull request to a "draft". |
There hasn't been much activity lately and the patch still needs rebase. What is the status here?
|
1 similar comment
There hasn't been much activity lately and the patch still needs rebase. What is the status here?
|
|
This has been needing rebase for about 2 years, so I am closing for now. Can be reopened any time, just let us know when. |
With #13809 (packaging split off), we lost the
.desktopand.protocolfiles.This PR restores them, and puts them in their proper places as part of
make install. (Systems without XDG can be configured--without-xdgto avoid this, and the macOS/Windows gitian descriptors are updated to use it.)Note that:
bitcoin128.svgneeds to be named such because (for some reason)bitcoin128has become the de facto standard XDG icon name for the generic Bitcoin icon.org.bitcoin.bitcoin-qt.desktopis required to matchQAPP_ORG_DOMAIN, which we have set to"bitcoin.org"for some reason. (Changing that is out of scope for this PR)