Kyaw Khaing
Kyaw Khaing

Reputation: 89

When launching google apps from command line , don't want to open google chrome browser

When I launch google apps[which is developed by myself] from command line, for example:

chrome.exe --load-and-launch-app="C:\Users\KyawKhaing\Desktop\chrome\Chrome App\Example2"

After I run this, I see Google Chrome Browser open first follow by my google chrome apps launch. I don't want to open google chrome browser when I launch a chrome app. Any one know the solution. Is it possible?

Upvotes: 5

Views: 8471

Answers (5)

Supercoder
Supercoder

Reputation: 1204

As I was running automation scripts in java, i did notice that chrome did not open using command prompt.

Runtime.getRuntime().exec("C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe \"http:\\www.google.com\"");

From Windows 7, I fixed the problem with the following steps:

  1. Go to the folder C:\Program Files (x86)\Google\Chrome\Application
  2. Right-click on chrome.exe
  3. Select Properties
  4. Select the Compatibility TAB
  5. Click on the "Change settings for all users" button
  6. Make sure to put a Check Mark on "Run this program in compatibility mode for:" and
  7. Select "Windows 7" from the drop down list.

Enjoy!

Upvotes: 0

Domitori
Domitori

Reputation: 61

Use the --silent-launch argument.

chrome.exe --silent-launch --load-and-launch-app="C:\Users\KyawKhaing\Desktop\chrome\Chrome App\Example2"

Upvotes: 6

Ben Wells
Ben Wells

Reputation: 1892

There is a bug already logged for this, see http://crbug.com/175381.

We are working on making app background pages keep the browser process alive; once this is done we can fix this bug. The problem currently is due to the way the process is kept alive - if we don't show the browser window the process exits between loading the app and the app opening a window.

Upvotes: -1

Vincent Scheib
Vincent Scheib

Reputation: 18620

I don't think you can do it currently. It is a reasonable feature request! You can make feature requests at http://crbug.com/new

Upvotes: -1

ya-ivanov
ya-ivanov

Reputation: 516

I don't think you can do that. The browser is the environment of the app. Its like trying to run a windows app, without running windows. The app depends on the browser. You can't open the app without opening the browser first. Sorry. Hope this helps.

Upvotes: -2

Related Questions