Closed trentondyck closed 12 months ago
The paths might need to be absolute: --hero="~/horizon-xi/appid_hero.png" --logo="~/horizon-xi/appid_logo.png" --boxart="~/horizon-xi/appidp.png" --tenfoot="appid.png"
- As in, /home/deck/horizon-xi/appid_hero.png
(${HOME}/horizon-xi/appid_hero.png
or /home/${USER}/horizon-xi/appid_hero.png
should also work, if you don't know what the home directory name will be). I haven't tested with '~' path names, but I know on the UI, the path names are given as absolute paths. Likewise, when testing setGameArt
, I only tested absolute paths. Having said that, I'm not sure why relative paths aren't working.
Also, are those the names of the files? SteamTinkerLaunch will give the files the names they need, so myfancyhero.png
for a shortcut with an AppID of 123456789
will become 123456789_hero.png
(assuming this is passed to --hero=""
of course :wink:).
I just did a very quick test and I got hero and logo to show up for a game (didn't have other art on-hand for that game). I used absolute paths for this test.
If you could attach a log for an attempted run I'll take a look, probably after work tomorrow as it's late for me tonight :-)
P.S. Glad to hear the compat tool setting is working, it's working in my tests too. Most likely will be merged tomorrow :partying_face:
Yeah that's exactly it. absolute paths worked for me. There's two issues to address then
I think there is logging if the image doesn't exist. Returning an exit code might require a bit of a refactor since this reuses logic from setgameart
command.
It's something I could investigate, though I wouldn't necessarily want anything to fail entirely if one image didn't exist out of four 😅
I'm not sure that other functions in STL do this either, but one could make the argument that they should, and a change like this would have to begin somewhere :-)
I'll close this for now, and keep it in mind as a future enhancement to commandline usage (which is probably the way I use SteamTinkerLaunch the most).
I should also add to the help screen and probably also the docs that paths should be absolute.
Hi Again,
Sorry to bother again, I think I'm doing something wrong (And I have a workaround so it's low priority for me) but trying to set the images command line I'm not getting the result I expect (any images).
Here's what I did:
Dependency 'innoextract' already installed, nothing to do. Dependency 'cabextract' already installed, nothing to do. Dependency 'yad' already installed, nothing to do.
Finished updating SteamTinkerLaunch ('v14.0.20230916-2')! Finished setting game art for '3410598813'. Restart Steam for the changes to take effect. (deck@steamdeck steamtinkerlaunch)$ ls ~/.local/share/Steam/userdata/5610248/config/grid/3410598813 ls: cannot access '/home/deck/.local/share/Steam/userdata/5610248/config/grid/3410598813': No such file or directory