Skip to content

Commit aa17244

Browse files
committedJul 1, 2022
release v7.3.1
1 parent 48c1cfc commit aa17244

File tree

4 files changed

+32
-33
lines changed

4 files changed

+32
-33
lines changed
 

‎CHANGELOG.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,14 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
66

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

9-
### [Unreleased]
9+
## [7.3.1](https://github.com/mviereck/x11docker/releases/tag/v7.3.1) - 2022-07-01
1010
### Added
11-
- `--xc`: Support `--hostdisplay` and `--kwin`.
11+
- `--xc`: Support `--kwin`, nested and on console.
12+
- `--xc`: Support `--xpra-xwayland`.
1213
### Fixed
13-
- `--xc`: Add support for `--xvfb`.
14+
- `--xc`: Add missing code for `--xvfb`.
1415
[(452)](https://github.com/mviereck/x11docker/issues/452)
16+
- `--xc`: Provide `--hostdisplay` dependencies.
1517

1618
## [7.3.0](https://github.com/mviereck/x11docker/releases/tag/v7.3.0) - 2022-06-27
1719
### Added

‎README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ Hardware acceleration for OpenGL is possible with option `-g, --gpu`.
190190
for driver version < v470.x and Xwayland < v22.1.2.
191191

192192
### Clipboard
193-
Clipboard sharing is possible with option `-c, --clipboard`.
193+
Clipboard sharing is possible with option `-c, --clipboard [=ARG]`.
194194
- Optional arguments `superv` and `altv` only provide host clipboard content to container if keys `[SUPER][v]` or `[ALT][v]` are pressed.
195195
- Optional argument `oneway` only transfers clipboard content from container to host.
196196

‎TODO.md

+2-7
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
x11docker ToDo notes
33

44
## Work in progress
5-
-
5+
- --kwin in weston segfaults
66
- --xc --xorg: MIT-SHM fails
77
- --xc --xorg rootless fails
8-
- --xc --weston on console: tty switch fails with unprivileged user
8+
- --xc --kwin on console: tty switch fails with unprivileged user
99

1010
- --backend=host: check X container
1111
- centralize argument checks
@@ -30,11 +30,6 @@ x11docker ToDo notes
3030

3131
- kata: add new runtime for nerdctl io.containerd.kata.v2
3232

33-
- X in container:
34-
- use xauth and others from image if not available on host
35-
- missing: Xorg, Weston/Kwin on console, xpra-xwayland
36-
- --xpra-xwayland --xc: xpra client fails with keyboard error
37-
3833
## Issues to fix
3934
- --build: download files for COPY/ADD (x11docker/check, x11docker/xserver)
4035
- `--remove`: give note about not removed files in `~./config/x11docker` and `/etc/x11docker`

‎x11docker

+24-22
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# Run 'x11docker --help' or scroll down to read usage information.
1212
# More documentation at: https://github.com/mviereck/x11docker
1313

14-
Version="7.3.1-beta-5"
14+
Version="7.3.1"
1515

1616
# --enforce-i: Enforce running in interactive mode to allow commands tty and weston-launch in special setups.
1717
grep -q -- "--enforce-i" <<< "$*" && case $- in
@@ -247,7 +247,7 @@ X and Wayland special configuration:
247247
Needs option --network.
248248
--xtest [=yes|no] Enable or disable X extension XTEST. Default is yes for
249249
--xpra and --xvfb, no for other X servers.
250-
Needed to allow custom access with xpra.
250+
Needed to allow keyboard and mouse control with xpra.
251251
252252
Container user settings:
253253
--group-add=GROUP Add container user to group GROUP.
@@ -4289,6 +4289,7 @@ create_xcontainercommand() { # option --xc: create docker command for X in co
42894289
Xcontainercommand="$Xcontainercommand $Xc_capdrop"
42904290
Xcontainercommand="$Xcontainercommand $Xc_user"
42914291
Xcontainercommand="$Xcontainercommand $Xc_containerx"
4292+
Xcontainercommand="$Xcontainercommand $Xc_hostx"
42924293
Xcontainercommand="$Xcontainercommand $Xc_gpu"
42934294
Xcontainercommand="$Xcontainercommand $Xc_console"
42944295
;;
@@ -4341,15 +4342,15 @@ create_xcontainercommand() { # option --xc: create docker command for X in co
43414342
Xcontainercommand="$Xcontainercommand $Xc_containerx"
43424343
Xcontainercommand="$Xcontainercommand $Xc_gpu"
43434344

4344-
Xpracontainername="x11docker_X${Newdisplaynumber}_xpraclient_${Cachenumber}"
4345-
Xpracontainercommand="$(sed '/--ipc/d ; /--name/d' <<< "$Xcontainercommand")"
4346-
Xpracontainercommand="$Xpracontainercommand $Xc_hostx"
4347-
Xpracontainercommand="$Xpracontainercommand $Xc_hostwayland"
4348-
Xpracontainercommand="$Xpracontainercommand \\
4349-
--name $Xpracontainername \\
4350-
--ipc=host \\
4351-
--uts=host \\
4352-
x11docker/xserver"
4345+
# Xpracontainername="x11docker_X${Newdisplaynumber}_xpraclient_${Cachenumber}"
4346+
# Xpracontainercommand="$(sed '/--ipc/d ; /--name/d' <<< "$Xcontainercommand")"
4347+
# Xpracontainercommand="$Xpracontainercommand $Xc_hostx"
4348+
# Xpracontainercommand="$Xpracontainercommand $Xc_hostwayland"
4349+
# Xpracontainercommand="$Xpracontainercommand \\
4350+
# --name $Xpracontainername \\
4351+
# --ipc=host \\
4352+
# --uts=host \\
4353+
# x11docker/xserver"
43534354
;;
43544355
--xpra-xwayland)
43554356
Xcontainercommand="$Xcontainercommand $Xc_capdrop"
@@ -8084,17 +8085,18 @@ $Xpraclientcommand"
80848085
unpriv_xcbackend "$Xcontainerbackend exec --detach $Xcontainername sh -c '$Xpraclientcommand'" >> "$Xpraclientlogfile" 2>&1
80858086
:
80868087
} || {
8087-
case "$Xserver" in
8088-
--XXXxpra2*)
8089-
Xpracontainercommand="$Xpracontainercommand
8090-
$Xpraclientcommand"
8091-
echo "$Xpracontainercommand"
8092-
unpriv_xcbackend "$Xpracontainercommand"
8093-
;;
8094-
*)
8095-
unpriv "$Xpraclientcommand ||:" >> "$Xpraclientlogfile" 2>&1 &
8096-
;;
8097-
esac
8088+
unpriv "$Xpraclientcommand ||:" >> "$Xpraclientlogfile" 2>&1 &
8089+
# case "$Xserver" in
8090+
# --XXXxpra2*)
8091+
# Xpracontainercommand="$Xpracontainercommand
8092+
#$Xpraclientcommand"
8093+
# echo "$Xpracontainercommand"
8094+
# unpriv_xcbackend "$Xpracontainercommand"
8095+
# ;;
8096+
# *)
8097+
# unpriv "$Xpraclientcommand ||:" >> "$Xpraclientlogfile" 2>&1 &
8098+
# ;;
8099+
# esac
80988100
}
80998101

81008102
# get pids

0 commit comments

Comments
 (0)
Please sign in to comment.