From fbbe396416f6fabf8c8fb78f989b7fc92c5388f2 Mon Sep 17 00:00:00 2001 From: loki Date: Sun, 3 May 2020 23:58:32 +0200 Subject: [PATCH] Install properly on ubuntu20.04 --- assets/apps_linux.json | 6 +----- gen-deb.in | 8 ++------ sunshine/platform/linux/input.cpp | 2 +- 3 files changed, 4 insertions(+), 12 deletions(-) diff --git a/assets/apps_linux.json b/assets/apps_linux.json index 75b38e47..13950778 100644 --- a/assets/apps_linux.json +++ b/assets/apps_linux.json @@ -1,8 +1,5 @@ { "env":{ - "DISPLAY":":0", - "DRI_PRIME":"1", - "XAUTHORITY":"$(HOME)/.Xauthority", "PATH":"$(PATH):$(HOME)/.local/bin" }, "apps":[ @@ -16,8 +13,7 @@ "name":"Steam BigPicture", "output":"steam.txt", - "cmd":"steam -bigpicture", - "prep-cmd":[] + "cmd":"steam -bigpicture" } ] } diff --git a/gen-deb.in b/gen-deb.in index 58ab144e..cc7c6a0a 100755 --- a/gen-deb.in +++ b/gen-deb.in @@ -35,8 +35,8 @@ Package: sunshine Architecture: amd64 Maintainer: @loki Priority: optional -Version: 0.1.1 -Depends: libssl | libavdevice | libboost-thread (>= 1.67) | libboost-filesystem (>= 1.67) | libboost-log (>= 1.67) | libpulse | libopus | libxtst | libx11 | libxfixes | libevdev | libxcb1 | libxcb-shm0 | libxcb-xfixes0 +Version: 0.2.1 +Depends: libssl1.1, libavdevice58, libboost-thread1.71.0, libboost-filesystem1.71.0, libboost-log1.71.0, libpulse0, libopus0, libxcb-shm0, libxcb-xfixes0 Description: Gamestream host for Moonlight EOF @@ -54,10 +54,6 @@ if [ -f /etc/group ]; then else echo "Warning: /etc/group not found" fi - -# Prevent necessity of rebooting system -chmod 0660 /dev/uinput -chown root:$GROUP_INPUT /dev/uinput EOF cat << 'EOF' > $RULES/85-sunshine-rules.rules diff --git a/sunshine/platform/linux/input.cpp b/sunshine/platform/linux/input.cpp index 9de79069..f5696522 100644 --- a/sunshine/platform/linux/input.cpp +++ b/sunshine/platform/linux/input.cpp @@ -55,7 +55,7 @@ public: } int create_mouse() { - libevdev_uinput *buf; + libevdev_uinput *buf {}; int err = libevdev_uinput_create_from_device(mouse_dev.get(), LIBEVDEV_UINPUT_OPEN_MANAGED, &buf); mouse_input.reset(buf);