Hid x11vnc from Inernet applications menu
This commit is contained in:
@@ -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"
|
||||||
|
|||||||
@@ -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
|
|
||||||
Reference in New Issue
Block a user