Connect a Google Drive account without the Google Drive app
The short answer
Glassine reads a Google Drive account directly through Google's Drive API. Google lets an app read a whole Drive only through a client registered in a Google Cloud project, so for now you create your own: it is free, takes about ten minutes once, and only you use it. Paste its ID and secret into Glassine, sign in with Google in your browser, and the Drive's photos and videos show up as a source like any other.
In Glassine, step by step
- Open console.cloud.google.com and sign in with the Google account that will own the project. It can be the account whose Drive you want to read, or another one
- Click the project picker at the top, then New project. Name it, for example Glassine, click Create and check that the new project is selected
- Open APIs & Services → Library, find Google Drive API and click Enable
- Open Google Auth Platform (in older consoles, APIs & Services → OAuth consent screen) and click Get started. Enter an app name such as Glassine (personal) and your email, choose External as the audience, add your email as the contact, accept the Google API Services User Data Policy and click Create
- Open Audience. Under Test users click Add users and add every Google account whose Drive Glassine should read. Accounts that are not on the list are refused at sign-in
- Open Data Access → Add or remove scopes and add https://www.googleapis.com/auth/drive.readonly. To let Glassine also move files to the trash, move and rename them on the Drive, add https://www.googleapis.com/auth/drive too. Click Update, then Save
- Open Clients → Create client, choose Desktop app, give it a name such as Glassine on my Mac and click Create. Copy the client ID, which ends in .apps.googleusercontent.com, and the client secret
- In Glassine open Settings → Sources → Google API client, paste the client ID and the client secret and click Save
- In the sidebar click Add Source… → Google Drive Account…, then choose whether Glassine may delete and organize files on this Drive (off by default, so it only reads) and whether to include shared drives, then click Sign In with Google…
- In the browser choose the account and allow access. If Google says it has not verified the app, click Advanced and go on to it. Glassine opens the new source: the list of files first, then Google's thumbnails, then its own analysis a small batch at a time
Mac and Windows
- MacA Google Drive account is connected this way only on the Mac. On Windows, Glassine finds the Google Drive for desktop folder as a source by itself
- MacWhile the Google Cloud project is in Testing, Google ends a sign-in after 7 days, and Sign In Again… on the source signs you back in. To keep sign-ins longer, click Publish app under Audience. For a project only you use there is nothing to submit, and Google shows its unverified-app screen at sign-in
- MacAllow Changes on Google Drive… and Stop Changes on Google Drive… in the source's menu or in Settings → Sources change the permission later. Disconnect Account… revokes Glassine's access at Google and removes the source's previews and analysis; nothing on the Drive changes
Without Glassine
Without a direct connection, the usual way is Google Drive for desktop: it shows the Drive as a folder on the computer, and Glassine reads that folder like any cloud folder. The other is to download everything with Google Takeout and sort it on a disk.
Where it gets painful
- Google Drive for desktop has to be installed and running, and it keeps its own cache on the disk
- Takeout needs as much free space as the whole Drive, and the copy is out of date as soon as it is made
- A photo that is both on the Drive and in the archive stays two files that nothing connects
Questions
Why do I need my own Google API client?
Google lets an app read a whole Drive only through a client in a Google Cloud project, and a public app needs Google's review and a yearly security assessment for that. Your own client is free, needs no billing account, and only you use it.
Is it safe to paste the client secret into Glassine?
Yes. Google does not treat the secret of a desktop client as confidential. Glassine keeps it in its settings file, readable only by you, and keeps the sign-in itself only in the macOS Keychain.
Does Glassine upload anything or keep copies of my files?
No. It talks only to Google's sign-in and Drive. Files it needs to analyze are downloaded a small batch at a time, 20 files or 1.5 GB, into Glassine's data folder and deleted after each batch. Glassine keeps only previews and the analysis.
Can Glassine delete files on my Drive?
Only if you allow changes. A delete moves the file to the Google Drive trash, never deletes it for good, with one confirmation and Undo. Files that belong to someone else or are shared read-only are left alone.
Google says “Access blocked: … has not completed the Google verification process”
The account is not a test user of your project. Add it under Audience → Test users, or publish the app.
Google says “Error 400: redirect_uri_mismatch”
The client is not a Desktop app. Create a client of the type Desktop app: it accepts Glassine's sign-in on any local port.
Glassine says the Google Drive API is off
Enable Google Drive API under APIs & Services → Library, in the same project as the client.
Related guides
- Photos in iCloud Drive, OneDrive and Google Drive in one catalog
- How to find duplicate photos between an external drive and iCloud
- How to keep the RAW, the JPEG and every edit of a shot together
Related features
Questions about GlassineTry Glassine
Closed beta for Mac and Windows: the download link comes with your beta key