feat: add -x11 flag
This commit is contained in:
6
devc.sh
6
devc.sh
@@ -51,6 +51,12 @@ param_args() {
|
|||||||
arg "-e HOST_HOME=$HOME" # Use to translate paths.
|
arg "-e HOST_HOME=$HOME" # Use to translate paths.
|
||||||
arg "-e DBUS_SESSION_BUS_ADDRESS='unix:path=/tmp/bus'"
|
arg "-e DBUS_SESSION_BUS_ADDRESS='unix:path=/tmp/bus'"
|
||||||
;;
|
;;
|
||||||
|
-x11)
|
||||||
|
arg "-e DISPLAY=$DISPLAY"
|
||||||
|
arg "-v /tmp/.X11-unix:/tmp/.X11-unix"
|
||||||
|
arg "-e XAUTHORITY=/run/user/1000/.Xauthority"
|
||||||
|
arg "-v $XAUTHORITY:/run/user/1000/.Xauthority:ro"
|
||||||
|
;;
|
||||||
*) # Use unknown arguments a podman arguments.
|
*) # Use unknown arguments a podman arguments.
|
||||||
arg "$1" ;;
|
arg "$1" ;;
|
||||||
esac
|
esac
|
||||||
|
|||||||
Reference in New Issue
Block a user