diff --git a/Dockerfile b/Dockerfile
index 4ee2bf5..a259b8c 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,13 +1,12 @@
-FROM debian:buster
+FROM debian:bullseye
WORKDIR "/opt/drawio-desktop"
-ENV DRAWIO_VERSION "16.0.0"
+ENV DRAWIO_VERSION "20.3.0"
RUN set -e; \
apt-get update && apt-get install -y \
xvfb \
wget \
- libappindicator3-1 \
libgbm1 \
libasound2; \
wget -q https://github.com/jgraph/drawio-desktop/releases/download/v${DRAWIO_VERSION}/drawio-amd64-${DRAWIO_VERSION}.deb \
@@ -21,11 +20,10 @@ ENV ELECTRON_DISABLE_SECURITY_WARNINGS "true"
ENV DRAWIO_DISABLE_UPDATE "true"
ENV DRAWIO_DESKTOP_COMMAND_TIMEOUT "10s"
ENV DRAWIO_DESKTOP_EXECUTABLE_PATH "/opt/drawio/drawio"
-# Currently, no security warning in this version of drawio desktop
-# ENV DRAWIO_DESKTOP_RUNNER_COMMAND_LINE "/opt/drawio-desktop/runner.sh"
-ENV DRAWIO_DESKTOP_RUNNER_COMMAND_LINE "/opt/drawio-desktop/runner-no-security-warnings.sh"
+ENV DRAWIO_DESKTOP_RUNNER_COMMAND_LINE "/opt/drawio-desktop/runner.sh"
ENV XVFB_DISPLAY ":42"
ENV XVFB_OPTIONS ""
+ENV ELECTRON_ENABLE_LOGGING "false"
ENTRYPOINT [ "/opt/drawio-desktop/entrypoint.sh" ]
CMD [ "--help" ]
diff --git a/scripts/runner.sh b/scripts/runner.sh
index 691fc2f..25e0142 100755
--- a/scripts/runner.sh
+++ b/scripts/runner.sh
@@ -1,14 +1,15 @@
#!/usr/bin/env bash
set -e
-filter_electron_security_warnings() {
- while read -r line; do
- echo "$line" | grep -v "is deprecated and will be changing"
- done
-}
-
if [ "${ELECTRON_DISABLE_SECURITY_WARNINGS}" == "true" ]; then
- "$DRAWIO_DESKTOP_EXECUTABLE_PATH" "$@" --no-sandbox 2> >(filter_electron_security_warnings)
+ "$DRAWIO_DESKTOP_EXECUTABLE_PATH" "$@" --no-sandbox 3>&1 >&2 2>&3 3>&- |
+ grep -v "Failed to connect to socket" |
+ grep -v "Could not parse server address" |
+ grep -v "Floss manager not present" |
+ grep -v "Exiting GPU process" |
+ grep -v "called with multiple threads" |
+ grep -v "extension not supported" |
+ grep -v "Failed to send GpuControl.CreateCommandBuffer"
else
"$DRAWIO_DESKTOP_EXECUTABLE_PATH" "$@" --no-sandbox 2>&1
fi
diff --git a/tests/data/issue-20/frame-bug-good.svg b/tests/data/issue-20/frame-bug-good.svg
index 79abc5a..97b12f6 100644
--- a/tests/data/issue-20/frame-bug-good.svg
+++ b/tests/data/issue-20/frame-bug-good.svg
@@ -1,2 +1,3 @@
+
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/tests/expected/export-issue-20.log b/tests/expected/export-issue-20.log
new file mode 100644
index 0000000..9a9b1b1
--- /dev/null
+++ b/tests/expected/export-issue-20.log
@@ -0,0 +1 @@
+issue-20/frame-bug.drawio -> issue-20/frame-bug.svg
diff --git a/tests/expected/output-electron-security-warning.log b/tests/expected/output-electron-security-warning.log
deleted file mode 100644
index c3d337b..0000000
--- a/tests/expected/output-electron-security-warning.log
+++ /dev/null
@@ -1 +0,0 @@
-file1.drawio -> file1.pdf
diff --git a/tests/expected/print_help.log b/tests/expected/print_help.log
deleted file mode 100644
index 8a3e6bf..0000000
--- a/tests/expected/print_help.log
+++ /dev/null
@@ -1,41 +0,0 @@
-Usage: drawio [options] [input file/folder]
-
-Options:
- -V, --version output the version number
- -c, --create creates a new empty file if no file is
- passed
- -k, --check does not overwrite existing files
- -x, --export export the input file/folder based on the
- given options
- -r, --recursive for a folder input, recursively convert
- all files in sub-folders also
- -o, --output