Added desktop icon for a snap
This commit is contained in:
6
scripts/snap/README.md
Normal file
6
scripts/snap/README.md
Normal file
@@ -0,0 +1,6 @@
|
||||
# Snap GUI
|
||||
|
||||
These files are added to the AdGuard Home snap in order to add an app icon:
|
||||
https://github.com/AdguardTeam/AdGuardHome/pull/1836
|
||||
|
||||
See .goreleaser.yml: snapcrafts.extra_files
|
||||
8
scripts/snap/gui/adguard-home-web.desktop
Normal file
8
scripts/snap/gui/adguard-home-web.desktop
Normal file
@@ -0,0 +1,8 @@
|
||||
[Desktop Entry]
|
||||
Type=Application
|
||||
Encoding=UTF-8
|
||||
Name=AdGuard Home
|
||||
Comment=Network-wide ads & trackers blocking DNS server
|
||||
Exec=adguard-home.adguard-home-web
|
||||
Icon=${SNAP}/meta/gui/adguard-home-web.png
|
||||
Terminal=false
|
||||
BIN
scripts/snap/gui/adguard-home-web.png
Normal file
BIN
scripts/snap/gui/adguard-home-web.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.6 KiB |
10
scripts/snap/local/adguard-home-web.sh
Executable file
10
scripts/snap/local/adguard-home-web.sh
Executable 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
|
||||
|
||||
Reference in New Issue
Block a user