Hid x11vnc from Inernet applications menu

This commit is contained in:
Josh.5
2022-01-16 14:40:19 +13:00
parent 8fc06d9621
commit ada5d2a9dc
2 changed files with 5 additions and 13 deletions

View File

@@ -20,12 +20,16 @@ if [[ "${ENABLE_VNC_AUDIO}" == "true" ]]; then
fi fi
# Enable supervisord script # Enable supervisord script
sed -i 's|^autostart.*=.*$|autostart=true|' /etc/supervisor/conf.d/vnc-audio.conf sed -i 's|^autostart.*=.*$|autostart=true|' /etc/supervisor/conf.d/vnc-audio.conf
# Remove x11vnc from applications menu
if ! grep -q 'Hidden=true' /usr/share/applications/x11vnc.desktop; then
echo 'Hidden=true' >> /usr/share/applications/x11vnc.desktop
fi
else else
echo "Disable audio stream" echo "Disable audio stream"
echo "Disable audio websock" echo "Disable audio websock"
# Disable supervisord script # Disable supervisord script
sed -i 's|^autostart.*=.*$|autostart=false|' /etc/supervisor/conf.d/vnc-audio.conf sed -i 's|^autostart.*=.*$|autostart=false|' /etc/supervisor/conf.d/vnc-audio.conf
fi fi
echo "DONE" echo "DONE"

View File

@@ -1,12 +0,0 @@
# Hide application from menu
[Desktop Entry]
Name=X11VNC Server
Comment=Share this desktop by VNC
Exec=x11vnc -gui tray=setpass -rfbport PROMPT -bg -o %%HOME/.x11vnc.log.%%VNCDISPLAY
Icon=computer
Terminal=false
Type=Application
StartupNotify=false
#StartupWMClass=x11vnc_port_prompt
Categories=Network;RemoteAccess;
Hidden=true