Skip to content

Pick local files with file picker for Game Image #4468

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

sandepten
Copy link

Hey, I have added the ability to pick local files with file picker for Game Image (issue #4464)

Screenshot From 2025-04-11 22-28-49

Use the following Checklist if you have changed something on the Backend or Frontend:

  • Tested the feature and it's working on a current and clean install.
  • Tested the main App features and they are still working on a current and clean install. (Login, Install, Play, Uninstall, Move games, etc.)
  • Created / Updated Tests (If necessary)
  • Created / Updated documentation (If necessary)

@flavioislima
Copy link
Member

flavioislima commented Apr 11, 2025

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

@sandepten
Copy link
Author

I have read the CLA Document and I hereby sign the CLA

@flavioislima flavioislima added the pr:ready-for-review Feature-complete, ready for the grind! :P label Apr 14, 2025
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

@flavioislima
Copy link
Member

Hi! Thanks for tackling this issue.

One small thing, can you update the text inside the input?
Maybe to something like "Paste an URL of an Image or select one from your computer".

@sandepten
Copy link
Author

Hi @flavioislima, I have updated the text inside the input

@imLinguin
Copy link
Member

It may be a good idea to explicitly copy the image to some Heroic owned location. I imagine in cases like flatpak, Heroic may not have constant access to the location user selected

@flavioislima
Copy link
Member

It may be a good idea to explicitly copy the image to some Heroic owned location. I imagine in cases like flatpak, Heroic may not have constant access to the location user selected

I wonder if this could happen if the app had access to pick the file at first. So unless that permission is revoked manually, I don't think that could happen, right?

Copy link
Member

@flavioislima flavioislima left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Looks good, still need testing though.

@imLinguin
Copy link
Member

It may be a good idea to explicitly copy the image to some Heroic owned location. I imagine in cases like flatpak, Heroic may not have constant access to the location user selected

I wonder if this could happen if the app had access to pick the file at first. So unless that permission is revoked manually, I don't think that could happen, right?

@flavioislima Not really, this can happen in every-day use. If the location is not accessible, the file picker will temporarily grant access to it through the portal, and make the file accessible in runtime location like $XDG_RUNTIME_DIR/doc/....
I think we should address cases like that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr:ready-for-review Feature-complete, ready for the grind! :P
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants