Skip to content

Instantly share code, notes, and snippets.

@unhammer

unhammer/get-xseticon.sh

Last active Dec 10, 2017
Embed
What would you like to do?
#!/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
You can’t perform that action at this time.