How to run Chrome apps via command line?
Hire the world's top talent on demand or became one of them at Toptal: https://topt.al/25cXVn
and get $2,000 discount on your first invoice
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Ominous Technology Looping
--
Chapters
00:00 How To Run Chrome Apps Via Command Line?
00:30 Accepted Answer Score 9
00:55 Answer 2 Score 10
01:16 Answer 3 Score 4
02:10 Thank you
--
Full question
https://superuser.com/questions/700903/h...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#linux #googlechrome
#avk47
ANSWER 1
Score 10
To find the command that runs the app:
- Go to the Chrome Apps page (
chrome://apps
) - Right click an icon and create shortcut on the desktop
- Right click an icon that appeared on the desktop and click Properties
- Copy the command
ACCEPTED ANSWER
Score 9
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 : http://peter.sh/experiments/chromium-command-line-switches/#app 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.
ANSWER 3
Score 4
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 https://support.google.com/chrome/a/answer/2714278?hl=en.
You can find the ID in the webstore URL, for example the ID for Google Docs is aohghmighlieiainnegkcijnfilokake (https://chrome.google.com/webstore/detail/google-docs/aohghmighlieiainnegkcijnfilokake)
You can goto the Extensions preferences page at chrome://extensions and enable Developer mode. You can then view the ID for installed extensions.