From 8c76b8914c4f8068db1797135c976fd1e60b6dbb Mon Sep 17 00:00:00 2001 From: Will Thompson Date: Mon, 21 May 2018 17:26:46 +0100 Subject: [PATCH] Check flashplugin manifest with Python 3 Previously, this launcher script checked for the existence of /usr/bin/python3 but went on to run /usr/bin/python instead. --- debian/chromium-browser.sh.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/chromium-browser.sh.in b/debian/chromium-browser.sh.in index 6d70800..655d74e 100644 --- a/debian/chromium-browser.sh.in +++ b/debian/chromium-browser.sh.in @@ -100,7 +100,7 @@ fi if test -x /usr/bin/python3 -a -f "/usr/lib/adobe-flashplugin/manifest.json"; then if echo "$CHROMIUM_FLAGS" |grep -E -- "--ppapi-flash-version=( |\$)"; then - ver=$(python -c 'import json,sys; print(json.load(open("/usr/lib/adobe-flashplugin/manifest.json"))["version"]);') + ver=$(python3 -c 'import json,sys; print(json.load(open("/usr/lib/adobe-flashplugin/manifest.json"))["version"]);') CHROMIUM_FLAGS=${CHROMIUM_FLAGS/--ppapi-flash-version=/--ppapi-flash-version="${ver}" } fi fi -- 2.17.0