Skip to content

Instantly share code, notes, and snippets.

@aramboi
Last active July 11, 2016 16:00
Show Gist options
  • Save aramboi/a4868861797d243778c0 to your computer and use it in GitHub Desktop.
Save aramboi/a4868861797d243778c0 to your computer and use it in GitHub Desktop.
Steam fix for Simple Screen Recorder OpenGL recording
#!/bin/bash
if [ ! $1 ]
then
echo "usage: simplescreenrecorder_steam_fix <VERSION>"
echo "example: simplescreenrecorder_steam_fix 0.3.6"
exit 1;
fi
VERSION=$1
echo "> Getting the 32bit library for version $VERSION"
wget -q -P /tmp/ https://launchpad.net/~maarten-baert/+archive/ubuntu/simplescreenrecorder/+files/simplescreenrecorder-lib_${VERSION}%2B1%7Eppa1%7Eprecise1_i386.deb
echo "> Extract archive"
dpkg -x /tmp/simplescreenrecorder-lib_${VERSION}+1~ppa1~precise1_i386.deb /tmp/simplescreenrecorder-i386/
echo "> Copy 'libssr-glinject.so' to '~/.steam/ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-gnu'"
cp /tmp/simplescreenrecorder-i386/usr/lib/i386-linux-gnu/libssr-glinject.so ~/.steam/ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-gnu
echo "> Cleanup"
rm -f /tmp/simplescreenrecorder-lib_${VERSION}+1~ppa1~precise1_i386.deb
rm -rf /tmp/simplescreenrecorder-i386
echo "------------------------------------------------"
echo "> Getting the 64bit library for version $VERSION"
wget -q -P /tmp/ https://launchpad.net/~maarten-baert/+archive/ubuntu/simplescreenrecorder/+files/simplescreenrecorder-lib_${VERSION}%2B1%7Eppa1%7Eprecise1_amd64.deb
echo "> Extract archive"
dpkg -x /tmp/simplescreenrecorder-lib_${VERSION}+1~ppa1~precise1_amd64.deb /tmp/simplescreenrecorder-amd64/
echo "> Copy 'libssr-glinject.so' to '~/.steam/ubuntu12_32/steam-runtime/amd64/usr/lib/x86_64-linux-gnu'"
cp /tmp/simplescreenrecorder-amd64/usr/lib/x86_64-linux-gnu/libssr-glinject.so ~/.steam/ubuntu12_32/steam-runtime/amd64/usr/lib/x86_64-linux-gnu
echo "> Cleanup"
rm -f /tmp/simplescreenrecorder-lib_${VERSION}+1~ppa1~precise1_amd64.deb
rm -rf /tmp/simplescreenrecorder-amd64
@AngryPenguinPL
Copy link

For me not working. After changing code in script to ~/.steam/steam/ubuntu12_32/steam-runtime/ from ~/.steam/ubuntu now working fine on Ubuntu 16.04x64.
Patch should have both ~/.steam/steam/...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment