Skip to content

v3: ShellNotifyIcon fails when shell not loaded yet/properly #3693

@DeltaLaboratory

Description

@DeltaLaboratory

Description

windows system tray calling ShellNotifyIcon with NIM_ADD argument, and panic if syscall fail.
but ShellNotifyIcon with NIM_ADD can be failed when shell(explorer) is not exists yet. especially when app registed as start application via registry

To Reproduce

  1. Having pretty bad computer
  2. Register application at start application register key with systray support
  3. try reboot until the issue reproduced

Expected behaviour

retry or let developer handle this type of error

Screenshots

No response

Attempted Fixes

I created small patch for this

System Details

^M

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't workingWindows

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions