0
0
mirror of https://github.com/cucumber-sp/yandex-music-linux.git synced 2025-09-29 01:53:59 +03:00

Wayland support

This commit is contained in:
Skiftsu
2024-03-11 22:28:06 +05:00
parent 51a06feb51
commit 285cf4c07b
2 changed files with 18 additions and 5 deletions

10
templates/yandex-music.sh Executable file
View File

@@ -0,0 +1,10 @@
#!/bin/bash
ELECTRON_PATH=$(tr '\n' ' ' < /usr/lib/yandex-music/electron-path)
if [ "$XDG_SESSION_TYPE" == "wayland" ]; then
WAYLAND_FLAGS="--enable-features=UseOzonePlatform --ozone-platform=wayland"
fi
# Launch
exec ${ELECTRON_PATH} /usr/lib/yandex-music/yandex-music.asar ${WAYLAND_FLAGS} "$@"