Jump to content

Google authentication (via browser) in script run by Alfred


Recommended Posts

I have a Python script that interacts with Google APIs (Gmail, Google Apps Script, etc.) and requires Google authentication when first run.

 

When run from the terminal, the script open a browser page which prompts for a Google login. However, when run through Alfred this browser page is never opened. It doesn't matter whether I paste the script into the Alfred workflow directly or call it via a Zsh script – the result is the same. 

 

If I authenticate by running the script once via the terminal, it then works properly in Alfred (as no browser page is required).

 

Any tips on what might be going on here?

Edited by sirdavidoff
Link to comment

When asking for help with a Workflow, please upload it somewhere as we can’t properly help you without access to it. Debugging can already be hard with access to the code, and you’re asking us to guess yours from a description. There are multiple places where your code or Workflow setup may be going wrong. Without looking at it we’re shooting in the dark.


Read the Reporting Problems with Workflows topic, as it gives a nice overview on how to build an effective report.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...