podman-prusa

Files for podman-prusa blog post
git clone https://www.brianlane.com/git/podman-prusa
Log | Files | Refs | README

run-prusa-slicer (355B)


      1 #!/bin/sh
      2 CMD=""
      3 if [ -z "$1" ]; then
      4     CMD=prusa-slicer
      5 else
      6     CMD="$*"
      7 fi
      8 xhost +si:localuser:"$USER"
      9 podman run --rm -it --userns=keep-id -v "$HOME/Downloads:/home/user/Downloads" \
     10 -v "$PWD/PrusaSlicer:/home/user/.config/PrusaSlicer" \
     11 -v /tmp/.X11-unix:/tmp/.X11-unix \
     12 -e "DISPLAY=unix$DISPLAY" \
     13 prusa-slicer "$CMD"
     14 xhost -si:localuser:"$USER"