Skip to content

Can I remove *.tmp.ico files when NativeImage has been destroyed? #10796

Closed

Description

@yuya-oc
  • Electron version: 1.8.1
  • Operating system:

Expected behavior

Remove temporary *.tmp.ico files when nativeImage has been destroyed.

Actual behavior

NativeImage creates temporary .ico when the files is archived in .asar archive. Actually I'm using it in Tray.
https://github.com/electron/electron/blob/v1.8.1/atom/common/api/atom_api_native_image.cc#L168-L184

Then files remain after the Electron app finishes. So a huge number of .ico files would exist in the temp folder.

How to reproduce

  1. Create a nativeImage with .ico archived in .asar.
  2. Quit the Electron application.

Activity

  1. codebytere commented on Apr 14, 2018

    @codebytere
    Member

    I believe you can, yes!

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions