How to run Chrome apps via command line?

I'm new to linux and just installed Elementary OS.
I installed Chrome and noticed that Workflowy and a bunch of other Chrome Apps are also installed, as you can see in the screenshot.enter image description hereBut how do I find what is the command to run a Chrome app, say, workflowy? (So that I can launch it from command line & assign a custom shortcut to it)

3 Answers

Don't really know if this will work for you as I never tested it but I found this site with many chromium command line options : You should take a look at the --app option.

--app : Specifies that the associated value should be launched in "application" mode.

--app-id: Specifies that the extension-app with the specified id should be launched according to its configuration.

1

To find the command that runs the app:

  1. Go to the Chrome Apps page (chrome://apps)
  2. Right click an icon and create shortcut on the desktop
  3. Right click an icon that appeared on the desktop and click Properties
  4. Copy the command

The command is as follows:

google-chrome --user-data-dir=$HOME/.config/google-chrome \ --profile-directory=Default \ --app-id=$APP_ID

Note: You will need to replace $APP_ID with the exact application ID (i.e. aapocclcgogkmnckokdopfmhonfmgoek) and $HOME with the path to your home directory. You can probably omit --user-data-dir and --profile-directory if you are using default values, but this is how Google Chome implements their launchers.

You can find the application ID a number of different ways.

  • Instructions and a helpful utility are available at .

  • You can find the ID in the webstore URL, for example the ID for Google Docs is aohghmighlieiainnegkcijnfilokake ()

  • You can goto the Extensions preferences page at chrome://extensions and enable Developer mode. You can then view the ID for installed extensions.

1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like