mirror of
https://github.com/QIDITECH/QIDIStudio.git
synced 2026-01-30 16:38:41 +03:00
fix some bug
This commit is contained in:
16
DockerRun.sh
16
DockerRun.sh
@@ -5,15 +5,24 @@ set -x
|
||||
# -h $HOSTNAME \
|
||||
# If there's problems with the X display, try this
|
||||
# -v /tmp/.X11-unix:/tmp/.X11-unix \
|
||||
# or
|
||||
# -v $HOME/.Xauthority:/root/.Xauthority \
|
||||
# You also need to run "xhost +" on your host system
|
||||
# QIDI Studio also require the parent directory for the configuration directory to be present to start
|
||||
# to prevent your local machines's QIDI studio config passed to docker container when you map your home directory, add:
|
||||
# -v :SHOME/.config/QIDIStudio
|
||||
set -x
|
||||
docker run \
|
||||
`# Use the hosts networking. Printer wifi and also dbus communication` \
|
||||
--net=host \
|
||||
`# Some X installs will not have permissions to talk to sockets for shared memory` \
|
||||
--ipc host \
|
||||
`# Run as your workstations username to keep permissions the same` \
|
||||
-u $USER \
|
||||
`# Bind mount your home directory into the container for loading/saving files` \
|
||||
-v $HOME:/home/$USER \
|
||||
-v $HOME:$HOME \
|
||||
`# Pass some X Auth file to allow x11 to connect to your host x instance` \
|
||||
-v $HOME/.Xauthority:/tmp/.Xauthority \
|
||||
-v /tmp/.X11-unix:/tmp/.X11-unix \
|
||||
-e XAUTHORITY=/tmp/.Xauthority \
|
||||
`# Pass the X display number to the container` \
|
||||
-e DISPLAY=$DISPLAY \
|
||||
`# It seems that libGL and dbus things need privileged mode` \
|
||||
@@ -24,4 +33,3 @@ docker run \
|
||||
--rm \
|
||||
`# Pass all parameters from this script to the qidi ENTRYPOINT binary` \
|
||||
qidistudio $*
|
||||
|
||||
|
||||
Reference in New Issue
Block a user