The shell script checks for the existence of /usr/bin/python3, so it
will fail gracefully if python3 is not installed. Not sure what the
intent of that was (python3 not widely available at the time this was
written, maybe?), but for now let's keep the test and not add an
explicit runtime dependency. I think it can be safely assumed that
python3 will be installed anyway on most modern distributions.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to chromium-browser in Ubuntu.
https://bugs.launchpad.net/bugs/1772448

Title:
  launcher script runs Python 2 despite checking for /usr/bin/python3

Status in chromium-browser package in Ubuntu:
  Confirmed

Bug description:
  debian/chromium-browser.sh.in contains this snippet:

  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"]);')
                
CHROMIUM_FLAGS=${CHROMIUM_FLAGS/--ppapi-flash-version=/--ppapi-flash-version="${ver}"
 }
        fi
  fi

  Notice that it checks for the existence of "/usr/bin/python3" but then
  runs "python", ie Python 2.7.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/chromium-browser/+bug/1772448/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to