What I need is to allow a remote user access to a host machine (Ubuntu) via VNC. The catch is that the user should only be allowed to use a specific software and nothing else.
My solution for now is to use x-gtk-vnc to embed a specific Xwindow in a html page on the client side. This works... except that and pop-up options will not register on the client side (since they are considered separate windows).
Possible solution #1 revolves around using a script to report when a new window is open. However, I don't know of any shell commands that can do so, (xwininfo requires you to pick a window) and I will probably have to hardcode tonnes of possible pop-ups into the html.
Possible solution #2 revolves around creating a bare virtual desktop where the software of interest runs as the main application (cannot be minimised or closed and no taskbars, etc...) and all pop-up menus appear in the foreground. Unfortunately, I have no idea how to do so. I can connect to the specific desktop using x-gtk-vnc embedded in a html as well.
Could anyone point me in the right direction with either solution? Personally prefer #2. Other solutions are welcomed as well.