Set up a desktop icon for p2p

main
Bob Mottram 2020-06-27 12:38:22 +01:00
parent d317c44880
commit 9685157740
1 changed files with 20 additions and 0 deletions

View File

@ -414,6 +414,26 @@ systemctl restart nginx
echo 'http 127.0.0.1 4444';
echo 'socks5 127.0.0.1 4447'; } > /etc/proxychains.conf
# set up a desktop icon
for d in /home/*/ ; do
CURRUSER=$(echo "$d" | awk -F '/' '{print $3}')
if [ -d "/home/${CURRUSER}/Desktop" ]; then
{ echo '#!/usr/bin/env xdg-open';
echo '[Desktop Entry]';
echo 'Name=Epicyon I2P';
echo 'GenericName=P2P Social Network';
echo 'Comment=P2P Social Network';
echo "Exec=proxychains midori http://${I2P_DOMAIN}";
echo 'Icon=org.midori_browser.Midori';
echo 'Type=Application';
echo 'Terminal=false';
echo 'Categories=Internet;SocialNetwork;';
echo 'StartupWMClass=Epicyon';
echo 'Keywords=Epicyon;P2P;I2P;'; } > "/home/${CURRUSER}/Desktop/${username}"
chown "$CURRUSER":"$CURRUSER" "/home/${CURRUSER}/Desktop/${username}"
fi
done
clear
echo -n "$I2P_DOMAIN" | qrencode -t ANSI
echo 'Your Epicyon i2p instance is now installed.'