steam: optionally display kdialog warning

This commit is contained in:
Samir Benmendil 2016-12-30 00:06:46 +00:00
parent 61db07874c
commit a56f506e11
2 changed files with 8 additions and 1 deletions

View File

@ -21,7 +21,7 @@ source=("http://repo.steampowered.com/$pkgname/pool/$pkgname/s/$pkgname/${pkgnam
'steam-runtime.sh')
sha256sums=('42531bf2615afed54c333ae9afeebe8cb68a31304ddfcf90e61b3532a5597386'
'174a110eda1c9d5b1c92a4490b266b31918559bbf8292a94905221c92da4bc0e'
'3e41154cd071198bc8662d29295be0da1a1d2f7d4ff1df834e2b13289af6d3e3')
'fbaeb962f68a5cec26f09864a6b86776f54b5ce18dc000dcab7169443e09c3a6')
prepare() {

View File

@ -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 "$@"