Skip to content

Nix desktop package omits the runtime BrowserWindow icon #37299

Closed as not planned

Description

@jerome-benoit

Description

On packaged Linux builds, packages/desktop/src/main/windows.ts resolves the window icon as process.resourcesPath/icons/icon.png. The Nix derivation rewrites that root to $out/opt/opencode-desktop/resources, but installs icon.png only under $out/share/icons/hicolor.

A realized Nix output contains the hicolor launcher icon but not $out/opt/opencode-desktop/resources/icons/icon.png, so the path passed to BrowserWindow does not exist. This is separate from #31710 and #37196/#37197, which cover launcher identity and desktop assets.

Plugins

N/A

OpenCode version

1.18.2 (dev at c69abee; also verified against #37197)

Steps to reproduce

  1. Build the Nix desktop package.
  2. Inspect result/opt/opencode-desktop/resources/icons/icon.png.
  3. Compare it with result/share/icons/hicolor/512x512/apps/ai.opencode.desktop.png.

Expected: the runtime icon path used by BrowserWindow exists.

Actual: the hicolor launcher icon exists, but the runtime icon path does not.

Screenshot and/or share link

N/A

Operating System

Fedora Linux 44, x86_64, using the Nix package

Terminal

N/A

Activity

  1. github-actions commented on Sep 16, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions