[SOLVED] Cannot button inside boxen

So applications launched in a SELinux sandbox always launch with a GB or US keyboard layout, but I'd prefer a finnish one. I believe Xephyr is to blame since it's the software handling the graphics but I can't figure out how to change the keyboard mapping permanently for sandboxed applicatons - after a relaunch the mapping is reset.

So far I've changed the mapping by either launching a terminal in the sandbox

$ sandbox -X -H /home/bati/.sandbox -T .tmp/ -t sandbox_web_t -w 1280x900 xfce4-terminal

and doing a 'setxkbmap fi' before launching an application from said terminal.
Another solution has been to invoke

$ xkbcomp $DISPLAY :n

from the host which copies the hosts layout to the box in n.

But it's a bit of a hassle and I'd prefer to launch the boxed programs directly from a launcher, because lazy. Any ideas how to go about?


Solution:
Had some free time to play around with this again, and 2 beers later wisdom kicked in, pointing the sandbox to open /path/to/script.sh * facepalm*

!# /bin/bash
setxkbmap fi && firefox

Man what an epic 1liner

2 Likes