From e153bf96216bb84005aea3a8c5b3dfc970979bae Mon Sep 17 00:00:00 2001 From: Sunderland93 Date: Mon, 22 May 2023 20:50:40 +0400 Subject: [PATCH] Add initial start-river wrapper --- debian/changelog | 6 ++++++ debian/tileos-settings-river.install | 1 + usr/bin/start-river.sh | 17 +++++++++++++++++ 3 files changed, 24 insertions(+) create mode 100755 usr/bin/start-river.sh diff --git a/debian/changelog b/debian/changelog index 61eddc3..be6197a 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +tileos-settings-river (0.3~tileos) unstable; urgency=medium + + * Add intial start-river wrapper + + -- Aleksey Samoilov Mon, 22 May 2023 20:50:05 +0400 + tileos-settings-river (0.2~tileos) unstable; urgency=medium * Add Wayland env variables diff --git a/debian/tileos-settings-river.install b/debian/tileos-settings-river.install index 2a19875..d474166 100644 --- a/debian/tileos-settings-river.install +++ b/debian/tileos-settings-river.install @@ -1 +1,2 @@ /etc +/usr diff --git a/usr/bin/start-river.sh b/usr/bin/start-river.sh new file mode 100755 index 0000000..f21c9e4 --- /dev/null +++ b/usr/bin/start-river.sh @@ -0,0 +1,17 @@ +#!/usr/bin/env sh + +# Check if system is running in virtual machine +case "$(systemd-detect-virt)" in +qemu) + export WLR_RENDERER=pixman + export WLR_NO_HARDWARE_CURSORS=1 + ;; +kvm) + export WLR_NO_HARDWARE_CURSORS=1 + ;; +oracle) + export WLR_NO_HARDWARE_CURSORS=1 + ;; +esac + +exec systemd-cat -- /usr/bin/river