From a56f506e113918f005364c958155fbc777dee608 Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Fri, 30 Dec 2016 00:06:46 +0000 Subject: [PATCH] steam: optionally display kdialog warning --- steam/PKGBUILD | 2 +- steam/steam-runtime.sh | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/steam/PKGBUILD b/steam/PKGBUILD index d916ee5..9a74574 100755 --- a/steam/PKGBUILD +++ b/steam/PKGBUILD @@ -21,7 +21,7 @@ source=("http://repo.steampowered.com/$pkgname/pool/$pkgname/s/$pkgname/${pkgnam 'steam-runtime.sh') sha256sums=('42531bf2615afed54c333ae9afeebe8cb68a31304ddfcf90e61b3532a5597386' '174a110eda1c9d5b1c92a4490b266b31918559bbf8292a94905221c92da4bc0e' - '3e41154cd071198bc8662d29295be0da1a1d2f7d4ff1df834e2b13289af6d3e3') + 'fbaeb962f68a5cec26f09864a6b86776f54b5ce18dc000dcab7169443e09c3a6') prepare() { diff --git a/steam/steam-runtime.sh b/steam/steam-runtime.sh index c0e0852..d17b346 100755 --- a/steam/steam-runtime.sh +++ b/steam/steam-runtime.sh @@ -1,5 +1,12 @@ #!/usr/bin/env bash +if hash kdialog 2>/dev/null; then + kdialog --dontagain steam_warnings_chakra:nofilemsg --msgbox \ +"Chakra Linux is not officially supported by Valve. +For help visit the wiki page of Steam https://chakraos.org/wiki/index.php?title=Steam +or ask for help in the forum" +fi + # see https://chakraos.org/wiki/index.php?title=Steam#Missing_Direct_Rendering export LD_PRELOAD='/usr/$LIB/libstdc++.so.6 /usr/$LIB/libgcc_s.so.1 /usr/$LIB/libxcb.so.1 /usr/$LIB/libgpg-error.so' exec /usr/lib/steam/steam "$@"