Skip to content

Instantly share code, notes, and snippets.

@nicoulaj
Created November 22, 2010 19:10
Show Gist options
  • Save nicoulaj/710455 to your computer and use it in GitHub Desktop.
Save nicoulaj/710455 to your computer and use it in GitHub Desktop.
#!/bin/sh
# Manually apply fix for https://bugs.launchpad.net/ubuntu/+source/libwnck/+bug/144406
# For Ubuntu 10.10 only !
# Install required packages
sudo apt-get install compiz-dev compiz-fusion-bcop compizconfig-settings-manager intltool -y
# Download and extract sources and patch
mkdir /tmp/compiz-plugins-patch && cd /tmp/compiz-plugins-patch
wget http://releases.compiz-fusion.org/components/plugins-main/compiz-plugins-main-0.8.6.tar.gz
tar xfvz compiz-plugins-main-0.8.6.tar.gz
wget https://bugs.launchpad.net/ubuntu/+source/libwnck/+bug/144406/+attachment/1728480/+files/compiz-plugins-main-0.8.6.patch.tar.gz
tar xfvz compiz-plugins-main-0.8.6.patch.tar.gz
cd compiz-plugins-main-0.8.6
# Apply patch
patch src/workarounds/workarounds.c src/workarounds/workarounds.c.patch
patch metadata/workarounds.xml.in metadata/workarounds.xml.in.patch
# Compile and install
./configure --prefix=/usr && cd metadata && make && sudo make install && cd ../src/workarounds && make && sudo make install
# Clean
rm -rf /tmp/compiz-plugins-patch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment