BUG: System tray icon still missing on Nixos · Issue #586 · StreamController/StreamController · GitHub
Skip to content

BUG: System tray icon still missing on Nixos #586

Description

@anarion80

Describe the bug
Related to #538 and #564.

To Reproduce
Steps to reproduce the behavior:
Install the package on NixOS. I used and overlay to get the latest commit: 4de67ec

Expected behavior
Tray icon is shown.

Screenshots

Image

Additional context
The icon is shown back when I remove the path argument from set_icon:

    (final: prev: {
      streamcontroller = prev.streamcontroller.overrideAttrs (oldAttrs: {
        version = "unstable-2025-04-14";
        src = prev.fetchFromGitHub {
          owner = "StreamController";
          repo = "StreamController";
          rev = "4de67ec7352b0825687c0142cb8d8965724232ec";
          hash = "sha256-63SffkbA8c1LOB33H8HfEebqS+lJVOClAfEo27c5x6o=";
        };
        postInstall =
          (oldAttrs.postInstall or "")
          + ''
            # Clear IconThemePath so the tray uses system icon lookup instead of
            # a custom path (many tray hosts fail silently with non-empty IconThemePath)
            substituteInPlace $out/usr/lib/streamcontroller/src/tray.py \
              --replace-fail \
                'self.set_icon("com.core447.StreamController", path=icon_theme_path)' \
                'self.set_icon("com.core447.StreamController")'
          '';
      });
    })

I am not sure if this can be fixed here or should be a permanent update in nixpkgs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions