Almamu / linux-wallpaperengine

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

[BGFIX] Wayland always displays black image #219

Closed sweglord227 closed 4 months ago

sweglord227 commented 4 months ago

Wallpaper Engine Background(s)

I have tried a few, but the example given in the ReadMe also displays nothing. https://steamcommunity.com/sharedfiles/filedetails/?id=1845706469&searchtext=portal+3 1845706469

Console output

linux-wallpaperengine/build git:main
❯ ./linux-wallpaperengine 1845706469
[0517/222404.342024:WARNING:resource_util.cc(94)] Please customize CefSettings.root_cache_path for your application. Use of the default value may lead to unintended process singleton behavior.
[0517/222404.460488:ERROR:object_proxy.cc(577)] Failed to call method: org.freedesktop.DBus.Properties.Get: object_path= /org/freedesktop/portal/desktop: org.freedesktop.DBus.Error.InvalidArgs: No such interface “org.freedesktop.portal.FileChooser”
[0517/222404.460512:WARNING:property.cc(144)] version: GetAndBlock: failed.
[0517/222404.460524:ERROR:select_file_dialog_linux_portal.cc(285)] Failed to read portal version property
Detected "scene.pkg" file at "/home/sweglord227/.local/share/Steam/steamapps/workshop/content/431960/1845706469/scene.pkg". Adding to list of searchable paths
No "gifscene.pkg" file found at "/home/sweglord227/.local/share/Steam/steamapps/workshop/content/431960/1845706469/gifscene.pkg". Defaulting to normal folder storage
Cannot find required key (directions) in json: Particle emitter must have direction specified
Cannot find required key (directions) in json: Particle emitter must have direction specified
Cannot find required key (directions) in json: Particle emitter must have direction specified
Cannot find required key (directions) in json: Particle emitter must have direction specified
Cannot find required key (directions) in json: Particle emitter must have direction specified
Cannot find required key (directions) in json: Particle emitter must have direction specified
Cannot find required key (directions) in json: Particle emitter must have direction specified

(linux-wallpaperengine:34195): Gtk-WARNING **: 22:24:04.472: gtk_disable_setlocale() must be called before gtk_init()
[0517/222404.571860:WARNING:sandbox_linux.cc(400)] InitializeSandbox() called with multiple threads in process gpu-process.

Desktop (please complete the following information):

OS: Arch Linux x86_64 Kernel: Linux 6.8.9-zen1-2-zen Display (24G1WG4): 1920x1080 @ 120Hz [External] WM: Hyprland (Wayland) CPU: AMD Ryzen 9 5900X (24) @ 5.62 GHz GPU: AMD Radeon RX 6700 XT @ 0.06 GHz [Discrete] Memory: 3.83 GiB / 31.25 GiB (12%)

Additional context

running hyprland with:

misc {
    disable_splash_rendering = true
    disable_hyprland_logo = true
}

to disable background wallpaper, however it displays black even in a window.

voidliududu commented 4 months ago

I have the same problem with latest code. But it works when I compile with this commit ( 235cda8c9439ede14b9c402bf6f323b1bb58643d ) . Maybe this commit (9e271a2b39159d800b75300d98c6b01b1b5a6a66) takes a mistake when handling default background

Almamu commented 4 months ago

Oh I see, running it in window mode doesn't properly detect the background to use, right. Give me a couple of minutes!

Almamu commented 4 months ago

Issue is fixed on main now, please feel free to reopen the issue if the issue still persists or if there's any other problems with it ;)