question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Launch in background

See original GitHub issue

I know this is out of scope but out of interest…

I didn’t find a way to specify opening the browser in the background. Stealing focus from the terminal window is just unwanted, for most cases, I guess.

I think it should be default.

There’s a flags thing. I read the manual. There’s nothing. Perhaps a trick with --display?

It points to this and this, which also don’t seem to have what is required. Perhaps something with --class?

This is relevant for all the other “real” browser launchers, as well.

Issue Analytics

  • State:open
  • Created 9 years ago
  • Comments:20 (1 by maintainers)

github_iconTop GitHub Comments

6reactions
adamreisnzcommented, Nov 30, 2014

I too would like the ability to launch the browsers minimized or in the background. Very annoying to have to keep minimizing the screens manually. Did you find a solution?

I’ve seen this been suggested:

browsers: [
    'ChromeBackground'
],
customLaunchers: {
    ChromeBackground: {
        base: 'Chrome',
        flags: ['--no-startup-window']
    }
},

While that works and launches Chrome in the background, Karma doesn’t seem to detect the browser. So I’ve resorted to just making the window less obnoxious:

browsers: [
    'ChromeSmall'
],
customLaunchers: {
    ChromeSmall: {
        base: 'Chrome',
        flags: ['--window-size=300,300']
    }
},
1reaction
ijsecommented, Dec 30, 2014

@AdamBuczynski Thanks for your answer. I use --window-position=-9999,0.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Start Linux Command in Background and Detach ...
If a process is already in execution, such as the tar command example below, simply press Ctrl+Z to stop it then enter the...
Read more >
How to Run Linux Commands in Background
A background process is a process/command that is started from a terminal and runs in the background, without interaction from the user. ·...
Read more >
How to Run Linux Commands in the Background - MakeUseOf
The easiest way to run a Linux background command is to add an Ampersand (&) symbol after the command. For example, if you...
Read more >
How to Run Linux Commands in Background & Bring Them ...
What you have to do here is to use Ctrl+Z to suspend the running process and then use 'bg' (short for background) to...
Read more >
Windows background apps and your privacy - Microsoft Support
Control whether an app can run in the background · Select Start , then select Settings > Apps > Apps & features. ·...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found