Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 258798 Details for
Bug 350514
www-client/chromium: add --temp-profile switch to launcher
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch adding --temp-profile switch
chromium-launcher.patch (text/plain), 1.47 KB, created by
Julien Sanchez
on 2011-01-04 08:33:33 UTC
(
hide
)
Description:
Patch adding --temp-profile switch
Filename:
MIME Type:
Creator:
Julien Sanchez
Created:
2011-01-04 08:33:33 UTC
Size:
1.47 KB
patch
obsolete
>--- /usr/portage/www-client/chromium/files/chromium-launcher.sh 2010-11-07 20:07:27.000000000 +0100 >+++ /usr/portage/www-client/chromium/files/chromium-launcher.sh 2011-01-04 09:13:13.516308407 +0100 >@@ -8,6 +8,7 @@ > export CHROME_WRAPPER="`readlink -f "$0"`" > > PROGDIR="`dirname "$CHROME_WRAPPER"`" >+PROGNAME="`basename "$0"`" > > case ":$PATH:" in > *:$PROGDIR:*) >@@ -19,7 +20,43 @@ > ;; > esac > >+usage () { >+ echo "$PROGNAME [--temp-profile] [options] [URL]" >+ echo >+ echo " -h or --help This help screen" >+ echo " --temp-profile Start with a new and temporary profile" >+} >+ >+want_temp_profile=0 >+while [ $# -gt 0 ]; do >+ case "$1" in >+ -h | --help | -help ) >+ usage >+ exit 0 ;; >+ --temp-profile ) >+ want_temp_profile=1 >+ shift ;; >+ -- ) # Stop option processing >+ shift >+ break ;; >+ * ) >+ break ;; >+ esac >+done >+ >+if [ $want_temp_profile -eq 1 ] ; then >+ TEMP_PROFILE=`mktemp -d` >+ TEMP_PROFILE_FLAG="--user-data-dir=$TEMP_PROFILE" >+fi >+ > # Set the .desktop file name > export CHROME_DESKTOP="chromium-chromium.desktop" > >-exec "$PROGDIR/chrome" --extra-plugin-dir=/usr/lib/nsbrowser/plugins "$@" >+if [ $want_temp_profile -eq 0 ] ; then >+ exec "$PROGDIR/chrome" --extra-plugin-dir=/usr/lib/nsbrowser/plugins "$@" >+else >+ # we can't exec here as we need to clean-up the temporary profile >+ "$PROGDIR/chrome" --extra-plugin-dir=/usr/lib/nsbrowser/plugins "$TEMP_PROFILE_FLAG" "$@" >+ rm -rf $TEMP_PROFILE >+fi >+
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 350514
: 258798 |
258799