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
Add application image #36
Add application image #36
Conversation
Pull requests must be made to the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code reviewed, but not tested. Seems mostly okay at first glance. One small change requested.
Have you tested on Linux and Windows? Please check each box if you've tested.
- Windows
- Linux
I don't have a linux setup now. Currently building one. |
Tested with Windows 11 and Moonlight-qt and Moonlight-ios with both JPG and PNG files, it works |
I'd be careful returning non-PNG images. They might work but it's only by luck. All current Moonlight clients assume the image they get back will be a PNG (like GFE does). They will cache the images locally as .png files, which may confuse the APIs consuming those files if they guess the image format based on the file extension. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Based on comments by @cgutman let's force the image to be PNG.
Additionally there was a typo in the word extension
wherever it appeared.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed.
@cfajardo can you take a look at this? A user in the moonlight discord was testing and couldn't get it to return the png or even the default image (on Windows). https://discord.com/channels/352065098472488960/667129596088418344/938115637627191417 I'm also going to try to setup a test machine later to test out this PR in both linux and windows. |
Could you invite me to Discord channel ? I'm not able to access it. |
|
Sunshine channel seems to be private. Am I right ? |
@cfajardo No... I think you need to select your roles in https://discord.com/channels/352065098472488960/668086277639503874 Also, I can confirm I'm not seeing images on a windows host, haven't tested linux yet. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small typo in apps_linux.json
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I appreciate your work on this PR and apologize for asking for a bunch of changes. One final change and then I'll merge the PR.
Description
Application picture feature added.
Screenshot
Issues Fixed or Closed
N/A
Type of Change
Application image path into *_apps.json.
Modification of GFE appimage route to send the picture to the client.
A field has been added to the WebUI to configure image path.
Bug fix (non-breaking change which fixes an issue)
New feature (non-breaking change which adds functionality)
Breaking change (fix or feature that would cause existing functionality to not work as expected)
Checklist