Almamu / linux-wallpaperengine

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

Linux Wallpaper Engine stops working when I use "--screen-root" flag. (Cannot find ../share/ folder) #169

Open IgLocoXD opened 1 year ago

IgLocoXD commented 1 year ago

I'm using Nobara (Fedora 37 based) in Wayland. When I use the program without any flag (Window mode) its work fine, but when I use the "--screen-root" flag, the program doesn't want to work.

vivinosmol@vivinosmol-pc ~> linux-wallpaperengine --screen-root HDMI-1 1319209973 (base) Detected "scene.pkg" file at "/home/vivinosmol/.local/share/Steam/steamapps/workshop/content/431960/1319209973/scene.pkg". Adding to list of searchable paths No "gifscene.pkg" file found at "/home/vivinosmol/.local/share/Steam/steamapps/workshop/content/431960/1319209973/gifscene.pkg". Defaulting to normal folder storage Cannot find "../share/". This folder is required for wallpaper engine to work wl_registry@2: error 0: invalid version for global wl_output (4): have 3, wanted 4 Failed to bind to required interfaces terminate called after throwing an instance of 'std::runtime_error' what(): Failed to bind to required interfaces fish: Job 1, 'linux-wallpaperengine --screen-…' terminated by signal SIGABRT (Abort)

trainzkid commented 11 months ago

Not 100% sure this is because of that flag. I get the same Cannot find "../share/" error whether I use that flag or not, or any flag for that matter. I also don't get anything displayed on the screen, and the program effectively stalls, not responding to CTRL + C.

With --screen-root:

No "scene.pkg" file found at "/home/$USER/.local/share/Steam/steamapps/workshop/content/431960/1265308137/scene.pkg". Defaulting to normal folder storage
No "gifscene.pkg" file found at "/home/$USER/.local/share/Steam/steamapps/workshop/content/431960/1265308137/gifscene.pkg". Defaulting to normal folder storage
Cannot find "../share/". This folder is required for wallpaper engine to work
Found requested screen: HDMI-A-0 -> 0x0:2560x1080
PulseAudio context initialization failed. Audio processing is disabled
PulseAudio connection failed! Audio processing is disabled

Without --screen-root:

No "scene.pkg" file found at "/home/$USER/.local/share/Steam/steamapps/workshop/content/431960/1059450186/scene.pkg". Defaulting to normal folder storage
No "gifscene.pkg" file found at "/home/$USER/.local/share/Steam/steamapps/workshop/content/431960/1059450186/gifscene.pkg". Defaulting to normal folder storage
Cannot find "../share/". This folder is required for wallpaper engine to work
PulseAudio context initialization failed. Audio processing is disabled
PulseAudio connection failed! Audio processing is disabled

ENV (Arch Linux + Xorg):

linux-wallpaperengine-git r412.af72b81-1
linux-zen 6.5.3.zen1-1
lz4 1:1.9.4-1
ffmpeg 2:6.0-10
mpv 1:0.36.0-1
freeimage 3.18.0-21
xorg-xrandr 1.5.2-1
glfw-x11 3.3.8-1
glew 2.2.0-6
freeglut 3.4.0-1
libpulse 16.1-6

It looks like your issue is related to the error directly proceeding that "share" line:

wl_registry@2:
error 0: invalid version for global wl_output (4): have 3, wanted 4
Failed to bind to required interfaces
terminate called after throwing an instance of 'std::runtime_error' what(): 
Failed to bind to required interfaces 
Almamu commented 8 months ago

What stack are you using in the DE side? WM, compositor... @IgLocoXD could be a lack of suppport from the compositor for the protocol version we're using. Maybe downgrading to 3 instead of 4 could help, but I'd need to reproduce the issue first to say for sure...