-
Notifications
You must be signed in to change notification settings - Fork 789
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for profile-directory
command line option
#963
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -424,6 +424,17 @@ func UserDataDir(dir string) ExecAllocatorOption { | |
return Flag("user-data-dir", dir) | ||
} | ||
|
||
// UserDataProfileDir is the command line option to set the profile | ||
// subdirectory under the UserData directory. | ||
// | ||
// Note: if unspecificed Chrome will choose/create the folder "Default". | ||
// This folder contains the profile specific data like cookies & cache. | ||
// If multiple profile exists they are typically named "Profile 1", | ||
// "Profile 2", etc. | ||
func UserDataProfile(profile string) ExecAllocatorOption { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah I was a little bit concerned about the ambiguity there. Because the word "directory" might imply that you need to specify a full path. If someone needs the feature they can always just use
I think maybe providing an example in There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Yes, I can not think of a use case for this option. |
||
return Flag("profile-directory", profile) | ||
} | ||
|
||
// ProxyServer is the command line option to set the outbound proxy server. | ||
func ProxyServer(proxy string) ExecAllocatorOption { | ||
return Flag("proxy-server", proxy) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
UserDataProfileDir
-->ProfileDirectory
the profile subdirectory under the UserData directory
-->the profile directory under the user data directory