pmbootstrap chroot --xauth: new option (MR 1944)

Make it easy to start any X11 application from the native chroot.
This commit is contained in:
Oliver Smith 2020-06-02 23:29:33 +02:00
parent 2dd707a7ea
commit 6d013b4472
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
2 changed files with 17 additions and 2 deletions

View file

@ -493,6 +493,10 @@ def arguments():
default="tui")
chroot.add_argument("command", default=["sh", "-i"], help="command"
" to execute inside the chroot. default: sh", nargs='*')
chroot.add_argument("-x", "--xauth", action="store_true",
help="Copy .Xauthority and set environment variables,"
" so X11 applications can be started (native"
" chroot only)")
for action in [build_init, chroot]:
suffix = action.add_mutually_exclusive_group()
if action == chroot: