Skip to content

Instantly share code, notes, and snippets.

anonymous
anonymous / polybridge_fix.c
Created June 22, 2017 20:28
Fixes Poly Bridge not starting on Linux when you have e.g. Google Chrome open
#define _GNU_SOURCE
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <assert.h>
#include <dlfcn.h>
// compile: gcc polybridge_fix.c -o polybridge_fix.so -ldl -shared -fPIC
// use: set launch command in steam to
// LD_PRELOAD=/path/to/polybridge_fix.so %command%