Get profile directory of active Chrome window - google-chrome

I'm trying to store the name of the profile running the active chrome window on applescript, any ideas on how I can do it?

Related

Is there any method by which we can access the local storage of any website by our chrome extension?

I am trying to build my 1st chrome extension for which I need it to be automatically logged in when we install that by accessing the local storage of our website if a user is logged in to the website
This is an extension that does almost same thing Storage Area Explorer

Is there a way to add Chrome Dedicated Developer Tools to Chrome Apps list?

When debugging server side code with Chrome Inspector, you have to reload Inspector every time you restart the server (as the URI changes). I eventually found out that if you use the Open dedicated DevTools for Node link in chrome://inspect/#devices, this tool will automatically reload with a node restart. This tool is also cool because you get a new window with the app as a full-page, like:
So, here's the questie: Is it possible to add Open Dedicated DevTools as an App to Chrome's Apps page?

is it possible to keep a packaged app running after `chrome.runtime.reload()` without additional windows?

I have a packaged app that calls chrome.runtime.reload(). On a desktop OS (Windows, OSX) this call will cause the application to close, but not restart unless there is an additional Chrome page open.
I assume this is because if it is the only Chrome app running, it closes the Chrome process entirely and there is nothing to restart it.
Adding the background permission looks like it should work, according to the documentation but it does not seem to actually start Chrome when the user logs in (and keep it running) as the documentation states.
A user can override this globally with a setting.
In Chrome's settings with "Show advanced settings":
System > Continue running background apps when Google Chrome is closed
Perhaps it is disabled on your development system.

Google chrome allow/deny prompt for using device's webcam with google chrome apps

At the moment google chrome provides me with security for using my device webcam, with a prompt '.. wants to use your camera' allow/deny. each time I load a page i get this option. I'm trying use the camera embedded within my google chrome app
Is there a way to make sure that once user says 'allow' the value is retrieved and user will not have to give access for that particular app.
Is there any API I could use where 'allow' or 'deny click is stored and sent back to the app so that i can do some modifications accordingly.
I cant reproduce that using my chrome browser though. I dont get any prompt for the user to allow/deny.But, client is getting this prompt and are not happy with prompt each time app tries to access camera
If you're talking about Chrome Packaged apps, you can use the "audioCapture" and "videoCapture" permissions in the manifest. No infobar prompt will appear if you include
those.
https://github.com/GoogleChrome/chrome-app-samples/blob/master/camera-capture/manifest.json#L14
If you're writing a normal web app hosted on a web server, than the only way
around the infobar prompt is to run the sight over SSL (https). In that case, users
will only be prompted once. Subsequent uses of your app won't show the prompt if the user
accepts the first time.
One solution is to launch your browser in command line by using the use-fake-ui-for-media-stream property.
start chrome "http://localhost" --use-fake-ui-for-media-stream
More informations about Linux and Mac command line instructions here: https://creativcoders.wordpress.com/2014/08/18/chrome-always-allow-access-to-webcam-and-microphone-over-http-webrtc/

Is there a way to show desktop notifications even if Chrome closed?

I'm developing a Google Chrome Extenstion, I wonder if there is anyway to show desktop notifications even if Chrome is closed, maybe some sort of background process or service? Kindly advice and guide me if it is not possible also. Thanks.
If you request a "background" permission your extension's background page will be able to show notifications even with Chrome windows closed.
When any installed hosted app, packaged app, or extension has "background" permission, Chrome runs (invisibly) as soon as the user logs into their computer—before the user launches Chrome. The "background" permission also makes Chrome continue running (even after its last window is closed) until the user explicitly quits Chrome.
If you use Google Chrome, you can enable a new Gmail feature that shows desktop notifications for new messages. Go to "Settings", and enable chat notifications and mail notifications to see a small bubble when you get a new message.
Secondly: Using WCF or Windows Services:
you have to develop simple client on machine polling a central service for alerts. Each alert should have a unique id so each client can deal with idem-potency
I Hope that this will be helpfull to you
Regards: Azeem Raavi