diff --git a/overlay/etc/cont-init.d/50-configure_vnc_audio.sh b/overlay/etc/cont-init.d/50-configure_vnc_audio.sh index 8f62a64..e0cce6e 100644 --- a/overlay/etc/cont-init.d/50-configure_vnc_audio.sh +++ b/overlay/etc/cont-init.d/50-configure_vnc_audio.sh @@ -20,12 +20,16 @@ if [[ "${ENABLE_VNC_AUDIO}" == "true" ]]; then fi # Enable supervisord script 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 echo "Disable audio stream" echo "Disable audio websock" # Disable supervisord script sed -i 's|^autostart.*=.*$|autostart=false|' /etc/supervisor/conf.d/vnc-audio.conf - fi echo "DONE" diff --git a/overlay/etc/home_directory_template/.local/share/applications/x11vnc.desktop b/overlay/etc/home_directory_template/.local/share/applications/x11vnc.desktop deleted file mode 100644 index 6e110dc..0000000 --- a/overlay/etc/home_directory_template/.local/share/applications/x11vnc.desktop +++ /dev/null @@ -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