Almamu / linux-wallpaperengine

Wallpaper Engine backgrounds for Linux!
GNU General Public License v3.0
1.51k stars 56 forks source link

Can't load wallpaper #186

Open GodGotzi opened 9 months ago

GodGotzi commented 9 months ago

./linux-wallpaperengine wallpapers/1083214466/

Cannot find directory for steam app wallpaper_engine: assets
Detected "scene.pkg" file at "wallpapers/1083214466/scene.pkg". Adding to list of searchable paths
No "gifscene.pkg" file found at "wallpapers/1083214466/gifscene.pkg". Defaulting to normal folder storage
Cannot find "". This folder is required for wallpaper engine to work
terminate called after throwing an instance of 'std::runtime_error'
  what():  Cannot find "". This folder is required for wallpaper engine to work
Aborted (core dumped)

What did I do wrong help why does it say 'Cannot find ""' ??????? Thanks for help

Adameczu commented 8 months ago

use --assets-dir "path to assets folder", works for me

trainzkid commented 8 months ago

The Cannot find "". line says Cannot find "../share/". on my system, but this doesn't prevent the app from running, so I'd be more worried about that first line, Cannot find directory for steam app wallpaper_engine: assets.

Snippet from a successful run of the app on my system

$USER@$HOST~> linux-wallpaperengine $WP_ID
No "scene.pkg" file found at "/home/$USER/.local/share/Steam/steamapps/workshop/content/431960/$WP_ID/scene.pkg". Defaulting to normal folder storage
No "gifscene.pkg" file found at "/home/$USER/.local/share/Steam/steamapps/workshop/content/431960/$WP_ID/gifscene.pkg". Defaulting to normal folder storage
Cannot find "../share/". This folder is required for wallpaper engine to work
[cplayer] mpv 0.36.0 Copyright © 2000-2023 mpv/MPlayer/mplayer2 projects
[cplayer]  built on Sun Jul 23 05:49:29 2023
[cplayer] libplacebo version: v5.264.1
[cplayer] FFmpeg version: n6.0
[cplayer] FFmpeg library versions:
...

As @Adameczu stated, the --assets-dir $PATH2ASSETS_DIR (where $PATH2ASSETS_DIR is the assets directory located inside the wallpaper_engine directory) should work. My assets directory is located at ~/.steam/steam/steamapps/common/wallpaper_engine/assets/ or ~/.local/share/Steam/steamapps/common/wallpaper_engine/assets/. Where are yall's assets directories located? This location may vary depending on distro, so it's possible there are some nonstandard directory locations that could be checked by this app in the future, assuming we know about them.

Just my 2 cents!