[Bug 1893020] Re: snap fails to pass chromium arguments

2020-09-04 Thread Olivier Tilloy
*** This bug is a duplicate of bug 1894216 ***
https://bugs.launchpad.net/bugs/1894216

That's a chromium-specific bug.

** No longer affects: snap (Ubuntu)

** This bug has been marked a duplicate of bug 1894216
   [snap] chromium launch script forces own  start-url when it shouldnt 
(headless mode)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1893020

Title:
  snap fails to pass chromium arguments

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1893020] Re: snap fails to pass chromium arguments

2020-09-04 Thread Ubuntu Foundations Team Bug Bot
The attachment "chromium.launcher.patch" seems to be a patch.  If it
isn't, please remove the "patch" flag from the attachment, remove the
"patch" tag, and if you are a member of the ~ubuntu-reviewers,
unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by
~brian-murray, for any issues please contact him.]

** Tags added: patch

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1893020

Title:
  snap fails to pass chromium arguments

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1893020] Re: snap fails to pass chromium arguments

2020-09-04 Thread miccs
** Also affects: chromium-browser
   Importance: Undecided
   Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1893020

Title:
  snap fails to pass chromium arguments

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1893020] Re: snap fails to pass chromium arguments

2020-09-04 Thread miccs
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.

** Patch added: "chromium.launcher.patch"
   
https://bugs.launchpad.net/ubuntu/+source/snap/+bug/1893020/+attachment/5407611/+files/chromium.launcher.patch

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1893020

Title:
  snap fails to pass chromium arguments

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/snap/+bug/1893020/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1893020] Re: snap fails to pass chromium arguments

2020-09-04 Thread miccs
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

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1893020

Title:
  snap fails to pass chromium arguments

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/snap/+bug/1893020/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1893020] Re: snap fails to pass chromium arguments

2020-09-04 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: snap (Ubuntu)
   Status: New => Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1893020

Title:
  snap fails to pass chromium arguments

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/snap/+bug/1893020/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs