[Spice-devel] remote-viewer "kiosk-mode"

Trebor Forban trebor.forban at gmail.com
Mon Sep 3 04:04:58 PDT 2012


2012/9/3 David Jaša <djasa at redhat.com>:
> Christophe Fergeau píše v Po 03. 09. 2012 v 09:43 +0200:
>> Hey,
>>
>> On Sat, Sep 01, 2012 at 02:22:07PM +0200, Trebor Forban wrote:
>> > Hello spice developers,
>> >
>> > I'd like to be able to configure various features/options/parameters
>> > of remote-viewer.
>> >
>> > Can someone possibly tell me if the following options can be realized/set
>> > with remote-viewer at present, or, if not, whether they may be considered
>> > for a future version:
>> >
>> >    1. Configure grab-keyboard/grab-mouse.
>>
>> What do you want to configure exactly?

I don't want the spice client to grab the mouse or keyboard, as this
prevents xscreensaver from starting:
"xscreensaver unable to grab keyboard or mouse!  Blanking aborted."

I'm using "xscreensaver-comand -watch" with ssh redirects as such:

-L 2200:$INTERNAL_IP:22$VMPORT \
-L 4400:$INTERNAL_IP:44$VMPORT \
-L 5500:$INTERNAL_IP:55$VMPORT \

to reduce the server load:

{ {
xscreensaver &
xscreensaver-command -activate
xscreensaver-command -watch | while read line ; do
 echo "$line" | grep -Eq '^BLANK|^LOCK' && echo stop | nc -q1 localhost 4400
 echo "$line" | grep -Eq '^UNBLANK' && echo cont | nc -q1 localhost 4400 && \
 ssh -o BatchMode=yes -o StrictHostKeyChecking=no -o
UserKnownHostsFile=/dev/null \
 -p 2200 swosuser at localhost 'w32tm /resync'
done ; }&}

starting the "xscreensaver-command -activate" before starting
remote-viewer seems to be working fairly well.

>>
>> >
>> >    2. Disable the sending of acpi/power-off information to the guest
>> >        when a user "powers-off/resets" the "physical client".
>>
>> Imo this would be better done on the host (or on the guest?) not sure it's
>> currently possible
>
> host sounds like the proper place: -spice disable-acpi-key=key where key
> could be key name or "all" (similar to tls-channel=channel syntax).
>
>>
>> >    3. Disable or redefine "special key combinations"  shift+F11 etc.
>>
>> You can do that through the controller interface (used by spice-xpi for
>> example).
>
> IMO the CLI should be as strong as controller.

I'll second that.

>
>>
>> >    4. Disable the window-menu completely.
>>
>> Which one? The menu to maximize/close/... remote-viewer window?

the remote-viewer menu; I found that it can be done in:

/usr/local/share/virt-viewer/ui/virt-viewer-about.xml

>>
>> >    5. Disable the "pop-down-menu" in "--full-sceen" mode.
>>
>> I don't think this is possible.

I've got it working with my own xrandr, devilspie, cygwin, ssh script:

8<-----
devilspie -a <(cat <<OPTS
        (begin
                (if
                  (contains (window_name) "(2) - Remote Viewer")
                  (begin
                    (geometry "$SEC_PRETOG_GEOMPOS")
                    (below)
                    (pin)
                    (skip_pager)
                    (skip_tasklist)
                    (undecorate)
                    (wintype "desktop")
                  )
                )
                (if
                  (contains (window_name) "(1) - Remote Viewer")
                  (begin
                    (geometry "$PRI_PRETOG_GEOMPOS")
                    (below)
                    (pin)
                    (skip_pager)
                    (skip_tasklist)
                    (undecorate)
                    (wintype "desktop")
                  )
                )
        )
OPTS
8<-----

this has the advantage that linux programs can be used "on top" of the
windows "desktop".

>>
>> What are you trying to achieve exactly? Locked down clients which start in
>> fullscreen, and from which the user cannot go out?
>>
>
> sounds like that.

yep.

Thanks to all,
TF

>
> David
>
>> Christophe
>> _______________________________________________
>> Spice-devel mailing list
>> Spice-devel at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/spice-devel
>
> --
>
> David Jaša, RHCE
>
> SPICE QE based in Brno
> GPG Key:     22C33E24
> Fingerprint: 513A 060B D1B4 2A72 7F0D 0278 B125 CD00 22C3 3E24
>
>
>
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/spice-devel


More information about the Spice-devel mailing list