update docker-gimp (host is broken)

This commit is contained in:
Simon Bruder 2018-08-17 13:05:23 +00:00
parent 62ada90286
commit e848cd1126
No known key found for this signature in database
GPG key ID: 6F03E0000CC5B62F

View file

@ -15,20 +15,18 @@ function docker-imagecheck() {
fi fi
} }
# gimp on host is very broken, so this is my (temporary) workaround
function docker-gimp() { function docker-gimp() {
for file in $@; do docker run --rm -it \
files="${files}/home/gui/data/${file} " -e DISPLAY \
done -e HOME=/home/gimp \
docker run --rm -d \ -u $(id -u) \
-v /tmp/.X11-unix:/tmp/.X11-unix \ -v /tmp/.X11-unix:/tmp/.X11-unix \
-v $PWD:/home/gui/data/ \ -v $PWD:/home/gimp/data/ \
-v /tmp/:/home/gui/tmp/ \ -v /tmp/:/home/gimp/tmp/ \
-e DISPLAY \ -v ~/.local/share/gegl-0.4:/home/gimp/.local/share/gegl-0.4 \
-e LANG \ -v ~/.config/GIMP/:/home/gimp/.config/GIMP/ \
-e uid=$UID \ jess/gimp $@
-e gid=$UID \
--device /dev/dri \
r.jalr.de/sbruder/docker-gimp $files
} }
function vobsub2srt() { function vobsub2srt() {