[virt-tools-list] [PATCHv3 virt-viewer 00/12] Kiosk mode

Marc-André Lureau marcandre.lureau at gmail.com
Thu Mar 19 15:11:18 UTC 2015


Hi

Just some notes about kiosk mode, while reading some unrelated code.
It should be possible to disable VT switching by using XDGASetMode.
However, I am not sure we want to go that road. Furthermore, there
would still be plenty of other things to lock anyway (windowmanager
etc). But anyway, I felt like sharing this.

On Tue, Aug 20, 2013 at 2:19 PM, Marc-André Lureau
<marcandre.lureau at gmail.com> wrote:
> Hi,
>
> This patch series implement a simple kiosk mode for virt-viewer, using
> the -k command line option.
>
> It will open virt-viewer on all client monitors in fullscreen, and
> won't provide any UI but the remote display or a blank window with
> some status. It becomes almost impossible to move out or quit. USB
> redirection is disabled in this mode too.
>
> Since window managers have various behaviours that are hard to prevent
> (win+client, alt+drag, bindings), it is designed to run with X11
> Option "DontVTSwitch" "true", without WM, for example this way:
> $ pkill yourwm ; virt-viewer -k ... ; yourwm &
>
> See also rfe:
> https://bugzilla.redhat.com/show_bug.cgi?id=872723
>
> Marc-André Lureau (12):
>   Try to share more GOption code between r-v and v-v
>   Define the min/max zoom levels, so all values are sync
>   Return existing window in app_window_new()
>   kiosk: add app kiosk option, pass it down to window
>   kiosk: open a window on each client monitor
>   kiosk: use less verbose window/display status
>   kiosk: keep a reference on the toolbar
>   kiosk: teach a window to become kiosk-mode
>   kiosk: add --kiosk-quit option
>   kiosk: warn and prevent if app want to quit or window to hide
>   kiosk: don't open extra monitors
>   kiosk: explicit resize window to fullscreen size
>
>  man/remote-viewer.pod     |  13 ++++
>  man/virt-viewer.pod       |  13 ++++
>  src/remote-viewer-main.c  |  54 +-------------
>  src/remote-viewer.c       |   6 +-
>  src/remote-viewer.h       |   6 +-
>  src/virt-viewer-app.c     | 183 ++++++++++++++++++++++++++++++++++++++++++++--
>  src/virt-viewer-app.h     |   1 +
>  src/virt-viewer-display.c |  12 +--
>  src/virt-viewer-main.c    |  29 +-------
>  src/virt-viewer-window.c  |  53 ++++++++++++--
>  src/virt-viewer-window.h  |   4 +
>  src/virt-viewer.c         |   6 +-
>  src/virt-viewer.h         |   4 +-
>  13 files changed, 272 insertions(+), 112 deletions(-)
>
> --
> 1.8.3.rc1.49.g8d97506
>



-- 
Marc-André Lureau




More information about the virt-tools-list mailing list