Broken setting custom flags in /usr/bin/chromium-browser script
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
chromium-browser (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
To workaround LP#1808853 (https:/
https:/
But it does not work due to probably an error in /usr/bin/
If use an unmodified /usr/bin/
I've made a patch:
--- ./chromium-browser 2018-12-17 04:53:00.000000000 +0300
+++ /tmp/chromium-
@@ -207,16 +207,16 @@
echo "$GDB $LIBDIR/$APPNAME -x $tmpfile"
$GDB "$LIBDIR/$APPNAME" -x $tmpfile
if [ $want_temp_profile -eq 1 ] ; then
- rm -rf $TEMP_PROFILE
+ rm -rf ${TEMP_PROFILE:?}/*
fi
exit $?
else
if [ $want_temp_profile -eq 0 ] ; then
- exec $LIBDIR/$APPNAME $CHROMIUM_FLAGS "$@"
+ exec "$LIBDIR/$APPNAME" "$CHROMIUM_FLAGS" "$@"
else
# we can't exec here as we need to clean-up the temporary profile
- $LIBDIR/$APPNAME $CHROMIUM_FLAGS "$@"
- rm -rf $TEMP_PROFILE
+ "$LIBDIR/$APPNAME" "$CHROMIUM_FLAGS" "$@"
+ rm -rf ${TEMP_PROFILE:?}/*
fi
fi
After this multiple pages are not openned, but, if we run
$ bash -x /usr/bin/
we see:
+ exec /usr/lib/
the problem is in ' ', new user-agent is not applied
If to run manually
$ /usr/lib/
then setting a custom useragent does work.
What can be done?
description: | updated |
Please let me know if I misunderstood and this isn't a duplicate.