Skip to content

Instantly share code, notes, and snippets.

@unhammer
Last active December 10, 2017 10:51
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save unhammer/cfa9cd907adcdf391290 to your computer and use it in GitHub Desktop.
Save unhammer/cfa9cd907adcdf391290 to your computer and use it in GitHub Desktop.
#!/bin/bash
set -e -u
wget -q http://packages.leonerd.org.uk/pool/main/x/xseticon/xseticon_0.1-0leo1_amd64.deb
mkdir tmp
dpkg -x xseticon_0.1-0leo1_amd64.deb tmp
mkdir -p ~/.local/bin
cp tmp/usr/bin/xseticon ~/.local/bin/
chmod +x ~/.local/bin/xseticon
mkdir -p ~/.local/lib/x86_64-linux-gnu
cp /usr/lib/x86_64-linux-gnu/libgd.so.3 ~/.local/lib/x86_64-linux-gnu/libgd.so.2
mkdir -p ~/bin
cat >~/bin/xseticon <<EOF
#!/bin/sh
LD_LIBRARY_PATH=\$HOME/.local/lib/x86_64-linux-gnu \$HOME/.local/bin/xseticon "\$@"
EOF
echo Now run ~/bin/xseticon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment