Skip to content

Icon lookups don't follow symlinks (nixos) #333

Closed

Description

@EricWardner

What happened

On NixOS every mirrored notification (texts, Slack, etc.) showed the Tether logo instead of the app's icon from my theme.

It looks like the scan in installed_icons() in src/daemon/notification.cpp doesn't follow symlinks, and in a Nix profile every theme folder under share/icons is one. So it only found Tether's own bundled icons.

Adding follow_directory_symlink to the iterator options fixed it for me:

-root, std::filesystem::directory_options::skip_permission_denied, ec);
+root, std::filesystem::directory_options::skip_permission_denied | std::filesystem::directory_options::follow_directory_symlink, ec);

With that it finds about 22,000 icon names instead of 193. It does add around 2 seconds to daemon start on my machine.

Happy to send a PR if that's easier

How did you install Tether?

Built from source

Output of tether --version

0.3.6

Distribution, init system, desktop

NixOS 26.11, systemd, Hyprland 0.57.2 Wayland

Output of tether --bt-status and tether --bt-setup

BlueZ version

5.87

iPhone model and iOS version

No response

Logs

### Before patch
[2026-11-21 21:43:36.191] [INFO] Found 193 icon names across the installed themes

### After patch
[2026-11-21 22:09:23.613] [INFO] Found 22130 icon names across the installed themes

Activity

  1. added
    bug
    on Nov 22, 2026
  2. changed the title [-]Notifications don't follow symlinks for icon lookups (nixos)[/-] [+]Icon lookups don't follow symlinks (nixos)[/+] on Nov 22, 2026
  3. zackb commented on Nov 22, 2026

    @zackb
    Owner

    Thank you for this! I don't use nix so it is really nice having people who do stay on top of these things. I've added the fix in #334 and will release in 0.3.7

    Please keep them coming if you find other issues on nix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions