-
-
Notifications
You must be signed in to change notification settings - Fork 18.2k
tidal-hifi: improve quality of the desktop entry #419474
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -87,7 +87,7 @@ let | |
| vulkan-loader | ||
| ]; | ||
| in | ||
| buildNpmPackage { | ||
| buildNpmPackage (self: { | ||
| pname = "tidal-hifi"; | ||
| inherit version; | ||
|
|
||
|
|
@@ -125,24 +125,23 @@ buildNpmPackage { | |
|
|
||
| desktopItems = [ | ||
| (makeDesktopItem { | ||
| exec = "tidal-hifi"; | ||
| name = "TIDAL Hi-Fi"; | ||
| desktopName = "tidal-hifi"; | ||
| genericName = "TIDAL Hi-Fi"; | ||
| comment = "The web version of listen.tidal.com running in electron with hifi support thanks to widevine."; | ||
| name = self.pname; | ||
| desktopName = "TIDAL Hi-Fi"; | ||
| genericName = "Music Player"; | ||
| comment = self.meta.description; | ||
| icon = "tidal-hifi"; | ||
| startupNotify = true; | ||
| exec = self.meta.mainProgram; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Here I'm less sure... Maybe it's better to switch to
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe the advice you recall is that using attributes via Same goes for
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Very hypothetical, but LGTM. |
||
| terminal = false; | ||
| type = "Application"; | ||
| mimeTypes = [ "x-scheme-handler/tidal" ]; | ||
| categories = [ | ||
| "Audio" | ||
| "Music" | ||
| "Player" | ||
| "Network" | ||
| "Application" | ||
| "AudioVideo" | ||
| "Audio" | ||
| "Video" | ||
| ]; | ||
| startupNotify = true; | ||
| startupWMClass = "tidal-hifi"; | ||
| mimeTypes = [ "x-scheme-handler/tidal" ]; | ||
| extraConfig.X-PulseAudio-Properties = "media.role=music"; | ||
| }) | ||
| ]; | ||
|
|
@@ -190,7 +189,7 @@ buildNpmPackage { | |
|
|
||
| meta = { | ||
| changelog = "https://github.com/Mastermindzh/tidal-hifi/releases/tag/${version}"; | ||
| description = "Web version of Tidal running in electron with hifi support thanks to widevine"; | ||
| description = "Web version of Tidal running in Electron with Hi-Fi support thanks to Widevine"; | ||
| homepage = "https://github.com/Mastermindzh/tidal-hifi"; | ||
| license = lib.licenses.mit; | ||
| maintainers = with lib.maintainers; [ | ||
|
|
@@ -201,4 +200,4 @@ buildNpmPackage { | |
| platforms = lib.platforms.linux; | ||
| mainProgram = "tidal-hifi"; | ||
| }; | ||
| } | ||
| }) | ||
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.
If I'm not mistaken, it is discouraged to re-use
pnamein the derivation. Please, keep the hard-coded name here.Uh oh!
There was an error while loading. Please reload this page.
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.
I'm afraid I need to ask you to cite a source (or reason it out). I'm not sure I recall seeing that advice anywhere.
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.
#387725 (comment)
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.
That comment you linked covers a very specific circumstance. That is not this circumstance. In this case, that's the reason to use
self.pnamerecursively, where it is not a footgun.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.
Seems like a match.
It is not the
Namefield of the desktop entry, so it seems quite inconsequential.LGTM.