Skip to content

Allow fetching chrome://fileicon/<path> endpoint or expose it via API. #6397

Closed

Description

@YurySolovyov
  • Electron version: 1.2.5
  • Operating system: All

It would be useful for some types of applications to have the ability to get "resolved" icon for file or just file extension, meaning that you get icon of an app associated with this extension or mime type.

image

when I try to do this in Electron, I get:

GET chrome://fileicon/%2Fhome%2Fuser%2FDocuments%2FOTChET.docx?scale=1x net::ERR_INVALID_URL

Activity

  1. changed the title [-]Fix chrome://fileicon/<path> endpoint or expose it via API.[/-] [+]Allow fetching chrome://fileicon/<path> endpoint or expose it via API.[/+] on Jul 8, 2016
  2. YurySolovyov commented on Jul 8, 2016

    @YurySolovyov
    ContributorAuthor

    I should add that using this type of URL outside of chrome://downloads in chrome gives

    Not allowed to load local resource: chrome://fileicon/%2Fhome%2Fuser%2FDocuments%2FOTChET.docx?scale=1x
    
  3. YurySolovyov commented on Jul 8, 2016

    @YurySolovyov
    ContributorAuthor

    Same goes about chrome://favicon/<url>

  4. YurySolovyov commented on Jul 8, 2016

    @YurySolovyov
    ContributorAuthor

    I may be wrong, but it seems like implementation is somewhere here

  5. techwritescode commented on Sep 12, 2016

    @techwritescode

    +1

  6. YurySolovyov commented on Oct 29, 2016

    @YurySolovyov
    ContributorAuthor

    @zcbenz I'm trying to implement this here https://github.com/YurySolovyov/electron/tree/image-from-icon, but I have a lot of questions, it would be great to have some guidance via email or here.
    Or I can submit a WIP PR and discuss there.

  7. deepak1556 commented on Oct 31, 2016

    @deepak1556
    Member

    can submit a WIP PR and discuss there.

    👍 .Just had a look at the branch, its good.

  8. YurySolovyov commented on Oct 31, 2016

    @YurySolovyov
    ContributorAuthor

    @deepak1556 thanks, but did you actually tried building it?
    I have some linking issues there, that's why I didn't submitted it yet

  9. deepak1556 commented on Oct 31, 2016

    @deepak1556
    Member

    Nope havn't , will try now.

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