Skip to content

Instantly share code, notes, and snippets.

@aramboi
Last active July 11, 2016 16:00
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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
@aramboi
Copy link
Author

aramboi commented Dec 18, 2015

Usage:

$ wget https://gist.github.com/aramboi/a4868861797d243778c0/raw/ef2193346f55049727b179bad6854a4867744590/simplescreenrecorder_steam_fix
$ chmod a+x simplescreenrecorder_steam_fix
$ ./simplescreenrecorder_steam_fix 0.3.6

You should run this every time Steam updates or SimpleScreenRecorder updates.
Tested on Ubuntu 15.10 with latest Steam Beta client.

@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