mirror of https://gitlab.com/bashrc2/epicyon
Set up a desktop icon for p2p
parent
d317c44880
commit
9685157740
20
deploy/i2p
20
deploy/i2p
|
@ -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.'
|
||||
|
|
Loading…
Reference in New Issue