Files
su3-launcher/install.sh

18 lines
497 B
Bash
Executable File

#!/bin/sh -x
#
# install the i2psu3 launcher
#
# these are for the .su3 file association
cp i2psu3.desktop "$HOME/.local/share/applications/"
grep -q i2psu3 "$HOME/.local/share/applications/mimeapps.list"
if [ "$?" -ne "0" ]
then
echo 'application/x-i2p-su3=i2psu3.desktop;' >> "$HOME/.local/share/applications/mimeapps.list"
fi
cp i2psu3.png "$HOME/.local/share/icons/hicolor/48x48/apps/"
cp i2psu3.xml "$HOME/.local/share/mime/packages/"
# this is the launcher script
sudo cp i2psu3 /usr/bin