Coder Social home page Coder Social logo

Comments (2)

github-actions avatar github-actions commented on May 20, 2024

Please fix the format of your markdown:

3:91 MD026/no-trailing-punctuation Trailing punctuation in heading [Punctuation: '。']
29 MD031/blanks-around-fences Fenced code blocks should be surrounded by blank lines [Context: "```"]
29 MD040/fenced-code-language Fenced code blocks should have a language specified [Context: "```"]
44 MD031/blanks-around-fences Fenced code blocks should be surrounded by blank lines [Context: "```"]
45:1 MD033/no-inline-html Inline HTML [Element: img]
46:1 MD033/no-inline-html Inline HTML [Element: img]

generated by check-issue

from rod.

ysmood avatar ysmood commented on May 20, 2024

如果 leakless 都不行,那么 chrome 就非常像病毒了。你只能自己处理他的进程了,这是拿到 stdlib 的 cmd 对象的例子:

func Example_custom_launch() {
// get the browser executable path
path := launcher.NewBrowser().MustGet()
// use the FormatArgs to construct args, this line is optional, you can construct the args manually
args := launcher.New().FormatArgs()
var cmd *exec.Cmd
if true { // decide whether to use leakless or not
cmd = leakless.New().Command(path, args...)
} else {
cmd = exec.Command(path, args...)
}
parser := launcher.NewURLParser()
cmd.Stderr = parser
utils.E(cmd.Start())
u := launcher.MustResolveURL(<-parser.URL)
rod.New().ControlURL(u).MustConnect()
}

你使用 exec 库的话就和 rod 无关了,这部分实在难以调试和复现。

from rod.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.