Skip to content

Commit

Permalink
--nxagent: set keyboard='clone' #208
Browse files Browse the repository at this point in the history
  • Loading branch information
mviereck committed Dec 26, 2019
1 parent 12030f4 commit d9dbf55
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

Project website: https://github.com/mviereck/x11docker

## [Unreleased]
### Changed
- `--nxagent`: Use `keyboard='clone'` for xkb settings.
[(#208)](https://github.com/mviereck/x11docker/issues/208)


## [6.5.0](https://github.com/mviereck/x11docker/releases/tag/v6.5.0) - 2019-12-22
### Added
- `--xoverip`: New option to enforce X over TCP/IP. For special setups only.
Expand Down
12 changes: 4 additions & 8 deletions x11docker
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# Run 'x11docker --help' or scroll down to read usage information.
# More documentation at: https://github.com/mviereck/x11docker

Version="6.5.0"
Version="6.5.1-beta"

# --enforce-i: Enforce running in interactive mode to allow commands tty and weston-launch in special setups.
grep -q -- "--enforce-i" <<< "$*" && case $- in
Expand Down Expand Up @@ -2979,11 +2979,7 @@ mode=$Screensize
# set keyboard layout
case $Xkblayout in
"") # set layout from host.
command -v setxkbmap >/dev/null && {
Nxagentoptions="$Nxagentoptions,keyboard=$(setxkbmap -query | grep rules | awk '{print $2}')/$(setxkbmap -query | grep layout | awk '{print $2}')"
} || note "Could not check your keyboard layout due to missing setxkbmap
If you get mismatching keys, please install setxkbmap.
$Wikipackages"
Nxagentoptions="$Nxagentoptions,keyboard='clone'"
;;
*) # --keymap
Nxagentoptions="$Nxagentoptions,keyboard='evdev/$Xkblayout'"
Expand All @@ -2994,7 +2990,7 @@ mode=$Screensize
echo "$Nxagentoptions" >> "$Nxagentoptionsfile"
debugnote "$Xserver: Additional nxagent options: $Nxagentoptions"

# Workaround as nxagent ignores XAUTHORITY and fails to start if option -auth is given without containing the cookie fom host display.
# Workaround as nxagent ignores XAUTHORITY and fails to start if option -auth is given without containing the cookie from host display.
# Option -ac above complies "xhost +" and is reverted in xinitrc.
[ "$Xauthentication" = "yes" ] && unpriv "cp '$Hostxauthority' '$Xservercookie'"

Expand Down Expand Up @@ -5894,7 +5890,7 @@ start_xserver() { # start X server
unpriv " bash $Xinitrc >> $Xinitlogfile 2>&1 " ;;
esac

[ $? != 0 ] && rocknroll && warning "X server $Xserver returned an error code.
[ $? != 0 ] && rocknroll && note "X server $Xserver returned an error code.
Last lines of xinit logfile:
$(tail $Xinitlogfile)
Expand Down

0 comments on commit d9dbf55

Please sign in to comment.