Add sovran-hub.desktop entry and icon to GNOME dock
Agent-Logs-Url: https://github.com/naturallaw777/staging_alpha/sessions/42720669-f980-4f13-989e-0728ea9307de Co-authored-by: naturallaw777 <99053422+naturallaw777@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
a390c4711a
commit
536eb0deb1
@@ -230,6 +230,22 @@ let
|
||||
install -d $out/share/sovran-hub/icons
|
||||
cp icons/* $out/share/sovran-hub/icons/ 2>/dev/null || true
|
||||
|
||||
install -d $out/share/icons/hicolor/scalable/apps
|
||||
cp sovran_systemsos_web/static/logo-light.svg $out/share/icons/hicolor/scalable/apps/sovran-hub.svg
|
||||
|
||||
install -d $out/share/applications
|
||||
cat > $out/share/applications/sovran-hub.desktop <<DESKTOP
|
||||
[Desktop Entry]
|
||||
Type=Application
|
||||
Name=Sovran Hub
|
||||
Comment=Open Sovran_SystemsOS Hub dashboard
|
||||
Exec=xdg-open http://localhost:8937
|
||||
Icon=sovran-hub
|
||||
Terminal=false
|
||||
Categories=System;
|
||||
StartupNotify=false
|
||||
DESKTOP
|
||||
|
||||
install -d $out/bin
|
||||
cat > $out/bin/sovran-hub-web <<LAUNCHER
|
||||
#!${pkgs.python3}/bin/python3
|
||||
@@ -293,6 +309,8 @@ in
|
||||
};
|
||||
};
|
||||
|
||||
environment.systemPackages = [ sovran-hub-web ];
|
||||
|
||||
networking.firewall.allowedTCPPorts = [ 3051 8937 60847 ];
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user