From e01b60368c5fc79f9a5c3821db5961fa9538a743 Mon Sep 17 00:00:00 2001 From: m1k1o Date: Mon, 22 Mar 2021 18:53:41 +0100 Subject: [PATCH] vlc default folder, no startup dialog and fix openbox. --- .m1k1o/vlc/Dockerfile | 4 +++- .m1k1o/vlc/openbox.xml | 2 +- .m1k1o/vlc/supervisord.conf | 2 +- README.md | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.m1k1o/vlc/Dockerfile b/.m1k1o/vlc/Dockerfile index 23c8777d..c9dccb11 100644 --- a/.m1k1o/vlc/Dockerfile +++ b/.m1k1o/vlc/Dockerfile @@ -1,7 +1,7 @@ FROM m1k1o/neko:base # -# install firefox-esr +# install vlc RUN set -eux; apt-get update; \ apt-get install -y --no-install-recommends openbox vlc; \ # @@ -9,6 +9,8 @@ RUN set -eux; apt-get update; \ apt-get clean -y; \ rm -rf /var/lib/apt/lists/* /var/cache/apt/* +ENV VLC_MEDIA="/media" + # # copy configuation files COPY supervisord.conf /etc/neko/supervisord/vlc.conf diff --git a/.m1k1o/vlc/openbox.xml b/.m1k1o/vlc/openbox.xml index 95376a7e..6b0339c2 100644 --- a/.m1k1o/vlc/openbox.xml +++ b/.m1k1o/vlc/openbox.xml @@ -13,7 +13,7 @@ - + no true yes diff --git a/.m1k1o/vlc/supervisord.conf b/.m1k1o/vlc/supervisord.conf index dd5d9915..f219e950 100644 --- a/.m1k1o/vlc/supervisord.conf +++ b/.m1k1o/vlc/supervisord.conf @@ -1,6 +1,6 @@ [program:vlc] environment=HOME="/home/%(ENV_USER)s",USER="%(ENV_USER)s",DISPLAY="%(ENV_DISPLAY)s" -command=/usr/bin/vlc --x11-display=%(ENV_DISPLAY)s +command=/usr/bin/vlc --x11-display=%(ENV_DISPLAY)s --no-qt-privacy-ask %(ENV_VLC_MEDIA)s autorestart=true priority=800 user=%(ENV_USER)s diff --git a/README.md b/README.md index cbe0f1dd..8b53c174 100644 --- a/README.md +++ b/README.md @@ -66,7 +66,7 @@ For n.eko room management software visit https://github.com/m1k1o/neko-rooms. Use following docker images: - `m1k1o/neko:latest` - for Firefox. - `m1k1o/neko:chromium` - for Chromium Ungoogled (needs `--cap-add=SYS_ADMIN`). -- `m1k1o/neko:vlc` - for VLC Video player (needs `volumes` folder with local video files) +- `m1k1o/neko:vlc` - for VLC Video player (needs volume mounted to `/media` with local video files, or setting `VLC_MEDIA=/media` path). - `m1k1o/neko:xfce` - for an shared desktop / installing shared software - `m1k1o/neko:base` - for custom base.