Skip to content
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

Game icons #140

Open
csrednicki opened this issue Oct 20, 2024 · 5 comments
Open

Game icons #140

csrednicki opened this issue Oct 20, 2024 · 5 comments
Labels
documentation Improvements or additions to documentation

Comments

@csrednicki
Copy link

Hi, in Defining Apps section in documentation there is icon_png_path parameter. I tried to use it but it didn't work. Where this icon should be placed? I tried many different locations like folder defined in app_state_folder variable, app directory, defined path from system, path in container without any luck.

Below you can find my app config and sample icon (I've created it for test purposes as PNG 628x888).

Here's my config:

[[apps]]
title = "Steam"
start_virtual_compositor = true
icon_png_path = "sample-icon.png" 

[apps.runner]
type = "docker"
name = "WolfSteam"
image = "ghcr.io/games-on-whales/steam:edge"
mounts = []
env = [
  "PROTON_LOG=1",
  "TZ=Europe/Warsaw",
  "RUN_SWAY=true",
  "GOW_REQUIRED_DEVICES=/dev/input/* /dev/dri/* /dev/nvidia*",
]
devices = []
ports = []
base_create_json = """
{
  "HostConfig": {
    "IpcMode": "host",
    "CapAdd": ["SYS_ADMIN", "SYS_NICE", "SYS_PTRACE", "NET_RAW", "MKNOD", "NET_ADMIN"],
    "SecurityOpt": ["seccomp=unconfined", "apparmor=unconfined"],
    "Ulimits": [{"Name":"nofile", "Hard":10240, "Soft":10240}],
    "Privileged": false,
    "DeviceCgroupRules": ["c 13:* rmw", "c 244:* rmw"]
  }
}
"""

Here's icon file:
sample-icon

@ABeltramo
Copy link
Member

app_state_folder expects the full path to the image file and, more importantly, it has to be accessible by the Wolf container.

My advice would be to make a folder under /etc/wolf/ (or where you store your config.toml file) say icons/ and place the file there called sample-icon.png. In this case the config will be:

icon_png_path = "/etc/wolf/icons/sample-icon.png"

We should definitely improve the docs on this..

@ABeltramo ABeltramo added the documentation Improvements or additions to documentation label Oct 20, 2024
@csrednicki
Copy link
Author

Thank you for quick reply. I've applied changes you proposed to config.toml

icon_png_path = "/etc/wolf/icons/sample-icon.png" 

This is screen from inside wolf container:
image

As you see file is placed in proper location and is accessible with proper rights.

Unfortunately moonlight still isn't displaying this icon correctly.
image

@ABeltramo
Copy link
Member

This is probably due to Moonlight caching those images, I'm going to take a look back at this over the next few days since I've also found a source for some good and open licensed defaults that we could include in Wolf..

Stay tuned 😉

@csrednicki
Copy link
Author

This is probably due to Moonlight caching those images,

I tried it on few different clients (android tv and windows). I also looked on windows into c:\Users\username\AppData\Local\Moonlight Game Streaming Project\Moonlight\cache\boxart\ where Moonlight is keeping its cache. Folder for this client was empty.

@salty2011
Copy link
Contributor

Ive been able to replicate this issue with Sunshine stream as well where Moonlight refuses to update the box art. I would suggest logging an issue with Moonlight as in my experience this problem isn't strictly related to wolf / sunshine stream and more related to the client not correctly updating its cache

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

3 participants