Vencord / Vesktop

Vesktop is a custom Discord App aiming to give you better performance and improve linux support
GNU General Public License v3.0
4.51k stars 199 forks source link

Transparency on Linux Wayland? #252

Closed ZaheenJ closed 1 year ago

ZaheenJ commented 1 year ago

After setting transparent to true in ~/.config/VencordDesktop/VencordDesktop/settings/settings.json as well as enabling Splash theming in the GUI, the splash screen is successfully transparent: image But not the app: image This is what it's supposed to look like (armcord --enable-features=UseOzonePlatform --ozone-platform=wayland --enable-features=WebRTCPipeWireCapturer on my M1 Asahi Linux Mac): image

This is on Hyprland (Wayland window manager) on Arch Linux, with hybrid graphics (Intel + Nvidia 1660Ti). When using this theme on ArmCord in the past, I had to force ArmCord to run in wayland (hence the flags above), but recently ArmCord crashes on start with those flags on my hybrid graphics laptop. Vesktop with those flags fails similarly to ArmCord:

[851594:1123/133748.752982: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”
[851594:1123/133748.753015:ERROR:select_file_dialog_linux_portal.cc(280)] Failed to read portal version property
[arRPC > ipc] listening at /run/user/1000/discord-ipc-0
[arRPC > websocket] listening on 6463
[arRPC > process] started
[851594:1123/133748.855740:ERROR:browser_main_loop.cc(275)] Gtk: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed
[851665:1123/133749.037734:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[851665:1123/133749.037835:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= RGBA_8888 and usage=SCANOUT
[851665:1123/133749.037990:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[851665:1123/133749.038044:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= RGBA_8888 and usage=GPU_READ
[851665:1123/133749.038092:ERROR:shared_image_factory.cc(926)] CreateSharedImage: could not create backing.
[851665:1123/133749.038155:ERROR:shared_image_factory.cc(758)] DestroySharedImage: Could not find shared image mailbox
[851665:1123/133749.038271:ERROR:gpu_service_impl.cc(1089)] Exiting GPU process because some drivers can't recover from errors. GPU process will restart shortly.
[851594:1123/133749.045072:ERROR:gpu_process_host.cc(991)] GPU process exited unexpectedly: exit_code=8704
[851725:1123/133749.177165:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[851725:1123/133749.177254:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= RGBA_8888 and usage=SCANOUT
[851725:1123/133749.177442:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[851725:1123/133749.177486:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= RGBA_8888 and usage=GPU_READ
[851725:1123/133749.177544:ERROR:shared_image_factory.cc(926)] CreateSharedImage: could not create backing.
[851725:1123/133749.177619:ERROR:shared_image_factory.cc(758)] DestroySharedImage: Could not find shared image mailbox
[851725:1123/133749.177746:ERROR:gpu_service_impl.cc(1089)] Exiting GPU process because some drivers can't recover from errors. GPU process will restart shortly.
[851671:1123/133749.182400:ERROR:command_buffer_proxy_impl.cc(319)] GPU state invalid after WaitForGetOffsetInRange.
[851594:1123/133749.184248:ERROR:gpu_process_host.cc(991)] GPU process exited unexpectedly: exit_code=8704
[851743:1123/133749.319149:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[851743:1123/133749.319253:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= RGBA_8888 and usage=SCANOUT
[851743:1123/133749.319433:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[851743:1123/133749.319507:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= RGBA_8888 and usage=GPU_READ
[851743:1123/133749.319582:ERROR:shared_image_factory.cc(926)] CreateSharedImage: could not create backing.
[851743:1123/133749.319647:ERROR:shared_image_factory.cc(758)] DestroySharedImage: Could not find shared image mailbox
[851743:1123/133749.319747:ERROR:gpu_service_impl.cc(1089)] Exiting GPU process because some drivers can't recover from errors. GPU process will restart shortly.
[851594:1123/133749.325444:ERROR:gpu_process_host.cc(991)] GPU process exited unexpectedly: exit_code=8704
[851671:1123/133749.434780:ERROR:command_buffer_proxy_impl.cc(127)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.

Running Vencord with those flags on my M1 Mac does not crash but does not give transparency either.

Vendicated commented 1 year ago

don't use hyprland