Ask Your Question

Connect Libreoffice 4.2 with Google Drive [closed]

asked 2014-03-09 03:23:28 +0200

Nuwil gravatar image

updated 2016-10-08 10:35:29 +0200

ratrace gravatar image

I've been reading around that there is now support for Google Drive from within LibreOffice 4.2. How was this implemented and how can i use it? Im using Ubuntu 12.04 and Libreoffice 4.2 installed via PPA.

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Alex Kemp
close date 2016-03-04 11:06:01.659419

1 Answer

Sort by » oldest newest most voted

answered 2014-09-27 14:35:11 +0200

vmiklos gravatar image

Here is how it works for me:

1) Use a TDF release binary, unless you're sure the the Ubuntu-shipped binaries enable the Google Drive feature as well. (--with-gdrive-client-id and --with-gdrive-client-secret configure switches.)

2) Make sure you use the internal file picker: Tools -> Options -> LibreOffice -> General -> check "Use LibreOffice dialogs".

3) File -> Open, then define your google drive: click the "servers..." button, then set type to CMIS, name can be e.g. gdrive, set Server Type to Google Drive, set your username, password, and that's it.

Two notes:

1) If you want to configure the same google drive account on multiple machines, then clicking through these steps is boring. You can edit registrymodifications.xcu in your profile -- all you need is to extend FilePickerPlacesUrls and FilePickerPlacesNames. The URL for gdrive is "vnd.libreoffice.cmis://$", (replace $NICK with your gmail login) the name is what you want, e.g. "gdrive".

2) gdrive integration works fine for me on master, however I get "general I/O error" when I use the TDF binaries, which is odd -- if gdrive support is disabled, then you should not be able to choose gdrive as a CMIS server type at all.

As for the second note, a bugreport (and CC'ing Cédric) would be welcome. :-)

edit flag offensive delete link more


Was able to set Server Type to Google Drive and then clicked the refresh button, which opened up a dialog for me to put in my email address and password. Then it asked to set a master password for saved passwords. Then i'm back at the initial dialog and repository is empty, path is empty and login is also empty and the OK button is disabled and i cant go any further.

Jay Philips gravatar imageJay Philips ( 2014-09-27 14:59:24 +0200 )edit

@jay, getting nothing in the Repository list box isn't normal... any additional information like the LO version and where the build comes are welcomed. I fixed an SSL certification validation problem recently for TDF builds.

Cédric Bosdonnat gravatar imageCédric Bosdonnat ( 2014-09-29 10:07:25 +0200 )edit

@Cedric - This is my build information

Version: Build ID: 185f2ce4dcc34af9bd97dec29e6d42c39557298f

I tested it on Windows with version and it worked correctly there.

Jay Philips gravatar imageJay Philips ( 2014-11-25 12:13:30 +0200 )edit

Seems like it is not just me having this problem, but sophie did as well.

Jay Philips gravatar imageJay Philips ( 2014-12-03 15:26:36 +0200 )edit

This "solution" should be removed from the forum. Current versions of LO require a 6-digit verification code from Google Drive. Unfortunately, Google Drive never sends the PIN, and there is absolutely nothing in the LO Help files or in the Forums that tells you how to solve that problem. Maybe very few people are using Save to Remote, or maybe they just can't figure out how to get past the 6-digit PIN problem. gravatar ( 2017-10-29 14:54:13 +0200 )edit

Question Tools

1 follower


Asked: 2014-03-09 03:23:28 +0200

Seen: 8,456 times

Last updated: Sep 27 '14