launch a specific chrome app from command line

13,044 views
Skip to first unread message

Marko Vuksanovic

unread,
Jun 29, 2012, 2:54:47 AM6/29/12
to chromi...@chromium.org
I was wondering if it is possible to launch a chrome app from command line? I'd like to do this in order to create a desktop shortcut so that users can run the application just by clicking a desktop icon - instead of first launching chrome and then the Chrome App (packaged).

PhistucK

unread,
Jun 29, 2012, 5:54:39 AM6/29/12
to Marko Vuksanovic, chromi...@chromium.org
When you right click on a Chrome application in the new tab page, there is a "Create shortcut" option (at least on Windows).
You can use it just as is, or customize the created shortcut.

PhistucK



On Fri, Jun 29, 2012 at 9:54 AM, Marko Vuksanovic <markovu...@gmail.com> wrote:
I was wondering if it is possible to launch a chrome app from command line? I'd like to do this in order to create a desktop shortcut so that users can run the application just by clicking a desktop icon - instead of first launching chrome and then the Chrome App (packaged).

--
You received this message because you are subscribed to the Google Groups "Chromium Apps" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msg/chromium-apps/-/qbWCUbgpTagJ.
To post to this group, send email to chromi...@chromium.org.
To unsubscribe from this group, send email to chromium-app...@chromium.org.
For more options, visit this group at http://groups.google.com/a/chromium.org/group/chromium-apps/?hl=en.

Paul Kinlan

unread,
Jun 29, 2012, 1:31:19 PM6/29/12
to PhistucK, Marko Vuksanovic, chromi...@chromium.org
You can launch from the command-line, there is a flag called --app-id [APP ID]  

--
Paul Kinlan
Developer Advocate @ Google for Chrome and HTML5
Skype: paul.kinlan

Edwind Ow

unread,
Jun 19, 2013, 5:08:06 AM6/19/13
to chromi...@chromium.org, PhistucK, Marko Vuksanovic
hello,

How do I use the --app-id flag in the chrome OS command line? For example I want to launch the app with app ID abcd, what should I type in the chrome OS command line?


Thank you.

Ben Wells

unread,
Jun 19, 2013, 5:40:00 AM6/19/13
to Edwind Ow, Chromium Apps, PhistucK, Marko Vuksanovic
What are you trying to do? What exactly do you mean by the chromeos command line - do you mean the command line that is used to launch the chrome browser on chromeos or do you mean the built in shell?


To unsubscribe from this group and stop receiving emails from it, send an email to chromium-app...@chromium.org.

To post to this group, send email to chromi...@chromium.org.

Edwin_d_Ow

unread,
Jun 19, 2013, 9:09:28 PM6/19/13
to chromi...@chromium.org, Edwind Ow, PhistucK, Marko Vuksanovic
I mean the build in shell (chrome browser, ctrl+alt+T and then shell). I install the chrome OS in the virtual box. My company wants me to find a way to launch a chrome application from the built in shell. Is there any other command line in the chrome OS other than the built in shell (like the one used to launch the chrome browser you said)? Thanks for your help.

Ben Wells

unread,
Jun 20, 2013, 4:38:05 AM6/20/13
to Edwin_d_Ow, Zelidrag Hornung, Chromium Apps, PhistucK, Marko Vuksanovic
+zelidrag who may know some trick

I don't know of any way to do what you want. It might help if you explain the end goal, I'm guessing starting apps from the built in shell is some step to a larger objective.

Edward Ost

unread,
Jun 27, 2013, 5:02:19 PM6/27/13
to chromi...@chromium.org
Here is an example using the Postman chrome application.  I used the approach described above.  I first created a new tab in Chrome so I could launch the application.  But instead of launching it I right clicked and selected Create Shortcuts and then selected Desktop.  I then opened the desktop shortcut and got the command text below.  As you can see, the app-id is an internal id, so you could not just type this in yourself.  I tested it from the Windows Start commandline and it works fine.


"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"  --profile-directory=Default --app-id=fdmmgilgnpjigdojojpjoooidkmcomcm
Reply all
Reply to author
Forward
0 new messages