summaryrefslogtreecommitdiff
path: root/config/chroot_local-hooks/02-skype
blob: 7a8433331e77e44c84d2cbe0a52a5f0b10529237 (plain)
1
2
3
4
5
6
7
8
#!/bin/sh
if [ -f /usr/share/applications/skype.desktop ]; then
    for lib in /usr/lib/i386-linux-gnu/libv4l/v4l1compat.so /usr/lib32/libv4l/v4l1compat.so /usr/lib/libv4l/v4l1compat.so
    do
        [ ! -r "$lib" ] && continue
        sed -i 's|\(Exec\)=.*|\1=XLIB_SKIP_ARGB_VISUALS=1 LD_PRELOAD='"$lib"' skype|' /usr/share/applications/skype.desktop || true
    done
fi