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:
10
templates/yandex-music.sh
Executable file
10
templates/yandex-music.sh
Executable 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} "$@"
|
Reference in New Issue
Block a user