Added desktop icon for a snap

This commit is contained in:
Andrey Meshkov
2020-07-16 20:25:39 +03:00
5 changed files with 40 additions and 6 deletions

View File

@@ -0,0 +1,10 @@
#!/bin/bash
# Get admin tool port from configuration
bind_port=$(grep bind_port $SNAP_DATA/AdGuardHome.yaml | awk -F ' ' '{print $2}')
if [ -z "$bind_port" ]; then
xdg-open http://localhost:3000
else
xdg-open http://localhost:$bind_port
fi