Skip to content

Conversation

@MattSturgeon
Copy link
Contributor

@MattSturgeon MattSturgeon commented Dec 15, 2024

Heroic usually has a WM Class of "Heroic", however for some reason the nixpkgs version has a WM Class of "heroic". EDIT: It's always heroic, but for some reason this doesn't cause issues for the flatpak version.

This subtle discrepancy results in the app's window not being associated with its desktop entry, so it cannot be pinned, does not have an icon, etc.

Without this PR:
Screenshot From 2024-12-15 21-37-07

With this PR:
Screenshot From 2024-12-15 21-36-40

Note

It's also possible that the upstream WM Class is wrong, and it has gone unnoticed for whatever reason. I'll update this once I'm able to verify.
EDIT: upstream PR Heroic-Games-Launcher/HeroicGamesLauncher#4181

cc @aidalgol

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 25.05 Release Notes (or backporting 24.11 and 25.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

Heroic usually has a WM Class of "Heroic", however for some reason the
nixpkgs version has a WM Class of "heroic".

This subtle discrepancy results in the app's window not being associated
with its desktop entry, so it cannot be pinned, does not have an icon,
etc.
@github-actions github-actions bot added the 6.topic: games Gaming on NixOS label Dec 15, 2024
@github-actions github-actions bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. labels Dec 15, 2024
@ofborg ofborg bot requested a review from aidalgol December 16, 2024 06:56
@MattSturgeon MattSturgeon added 12.approvals: 1 This PR was reviewed and approved by one person. 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in any of the changed packages. labels Dec 16, 2024
@khaneliman
Copy link
Contributor

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 365460


x86_64-linux

✅ 2 packages built:
  • heroic
  • heroic-unwrapped

Copy link
Contributor

@khaneliman khaneliman left a comment

Choose a reason for hiding this comment

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

Thanks, Matt!

@khaneliman khaneliman merged commit 3e8ad28 into NixOS:master Dec 18, 2024
57 of 58 checks passed
@MattSturgeon MattSturgeon deleted the heroic-wm-class branch December 18, 2024 00:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: games Gaming on NixOS 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 12.approvals: 1 This PR was reviewed and approved by one person. 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in any of the changed packages.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants