Public bug reported:

it is copied from :
https://bugs.launchpad.net/ubuntu/+source/snap/+bug/1893020

-------------------------
the problem is "/snap/chromium/current/bin/chromium.launcher" script,
to be precise these 2 lines below:
exec "$SNAP/usr/lib/chromium-browser/chrome" --no-default-browser-check 
--no-first-run --password-store=$PASSWORD_STORE $FLASH_OPTIONS $CHROMIUM_FLAGS 
"$@" "$FIRSTRUN_PAGE"

and

"$SNAP/usr/lib/chromium-browser/chrome" --user-data-dir=$TEMP_PROFILE
--no-default-browser-check --no-first-run --password-
store=$PASSWORD_STORE $FLASH_OPTIONS $CHROMIUM_FLAGS "$@"
"$FIRSTRUN_PAGE"

when --headless options is used "$FIRSTRUN_PAGE" parameter shall never
be passed here as user specify his own page here and because of that
chromium gives:

"[0826/093125.490825:ERROR:headless_shell.cc(174)] Open multiple tabs is
only supported when remote debugging is enabled."

ive patched this script in my snap directory (which is tricky) like this:
copied whole folder "/snap/chromium/1284/bin" to other dir on the disk,
patched script,
then did "sudo mount --bind -o nodev,ro /media/data/chromsc 
/snap/chromium/1284/bin"

and voila this works

so the solution would be to check if user is passing --headless
parameter and if he passes his own site - if so then dont pass
"$FIRSTRUN_PAGE" parameter


---------------------------------------


additional info regarding solution:

one doesnt need to check if user adds own site because --headless mode
can start without website provided, so its enough just to check if user
provided --headless parameter.

ive added a patch - which is tested - works perfectly fine.

** Affects: chromium-browser (Ubuntu)
     Importance: Undecided
         Status: New

** Patch added: "chromium.launcher.patch"
   
https://bugs.launchpad.net/bugs/1894216/+attachment/5407619/+files/chromium.launcher.patch

-- 
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/1894216

Title:
  [snap] chromium launch script forces own  start-url when it shouldnt
  (headless mode)

Status in chromium-browser package in Ubuntu:
  New

Bug description:
  it is copied from :
  https://bugs.launchpad.net/ubuntu/+source/snap/+bug/1893020

  -------------------------
  the problem is "/snap/chromium/current/bin/chromium.launcher" script,
  to be precise these 2 lines below:
  exec "$SNAP/usr/lib/chromium-browser/chrome" --no-default-browser-check 
--no-first-run --password-store=$PASSWORD_STORE $FLASH_OPTIONS $CHROMIUM_FLAGS 
"$@" "$FIRSTRUN_PAGE"

  and

  "$SNAP/usr/lib/chromium-browser/chrome" --user-data-dir=$TEMP_PROFILE
  --no-default-browser-check --no-first-run --password-
  store=$PASSWORD_STORE $FLASH_OPTIONS $CHROMIUM_FLAGS "$@"
  "$FIRSTRUN_PAGE"

  when --headless options is used "$FIRSTRUN_PAGE" parameter shall never
  be passed here as user specify his own page here and because of that
  chromium gives:

  "[0826/093125.490825:ERROR:headless_shell.cc(174)] Open multiple tabs
  is only supported when remote debugging is enabled."

  ive patched this script in my snap directory (which is tricky) like this:
  copied whole folder "/snap/chromium/1284/bin" to other dir on the disk,
  patched script,
  then did "sudo mount --bind -o nodev,ro /media/data/chromsc 
/snap/chromium/1284/bin"

  and voila this works

  so the solution would be to check if user is passing --headless
  parameter and if he passes his own site - if so then dont pass
  "$FIRSTRUN_PAGE" parameter

  
  ---------------------------------------

  
  additional info regarding solution:

  one doesnt need to check if user adds own site because --headless mode
  can start without website provided, so its enough just to check if
  user provided --headless parameter.

  ive added a patch - which is tested - works perfectly fine.

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

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to