Google Drive vs. MATE

I would like to mount Google Drive on MATE. This works fine in vanilla Ubuntu, but not in MATE. I found a web site that said to install gnome-control-center and gnome-online-accounts. Unfortunately, when I try to run gnome-control-center, I get the following error:
ERROR:../shell/cc-shell-model.c:458:cc_shell_model_set_panel_visibility: assertion failed: (valid)

I'm running 19.04.

I was able to get it to mount via ocamlfuse, but it seems like it should be more integrated like vanilla Ubuntu.

So far close Google Drive integration is not natively available ( I've thought of making a caja plugin that would do that but I've taken a summer break from attempting to learn python, and such a plugin would be only after I was very familiar with python as it would have to be written from scratch pretty much other than using gvfs, maybe someone else will write one, although it could be in c rather than python) anyways the only good way right now is to install gnome online accounts and the gnome control center, and there are several commands to make them work listed elsewhere on the forum, I'll try to find them and give you the link

Search "ubuntu mate online accounts" in the forum and you will find what should be the solution

After long trial-and-errors process I ended this with installing Grive and Grive-tools.

For 19.04 we need to install gksu and libjson0-dev with their dependencies first:

wget http://mirrors.kernel.org/ubuntu/pool/main/libg/libgtop2/libgtop-2.0-10_2.32.0-1_amd64.deb
sudo apt install -y ./libgtop-2.0-10_2.32.0-1_amd64.deb

wget https://mirrors.edge.kernel.org/ubuntu/pool/universe/libg/libgksu/libgksu2-0_2.0.13~pre1-6ubuntu8_amd64.deb
sudo apt install -y ./libgksu2-0_2.0.13~pre1-6ubuntu8_amd64.deb

wget http://mirrors.kernel.org/ubuntu/pool/universe/g/gksu/gksu_2.0.2-9ubuntu1_amd64.deb
sudo apt install -y ./gksu_2.0.2-9ubuntu1_amd64.deb

wget http://mirrors.kernel.org/ubuntu/pool/main/j/json-c/libjson-c2_0.11-4ubuntu2_amd64.deb
sudo apt install -y ./libjson-c2_0.11-4ubuntu2_amd64.deb

wget http://mirrors.kernel.org/ubuntu/pool/main/j/json-c/libjson0_0.11-4ubuntu2_amd64.deb
sudo apt install -y ./libjson0_0.11-4ubuntu2_amd64.deb

wget http://mirrors.kernel.org/ubuntu/pool/main/j/json-c/libjson-c-dev_0.11-4ubuntu2_amd64.deb
sudo apt install -y ./libjson-c-dev_0.11-4ubuntu2_amd64.deb

wget http://mirrors.kernel.org/ubuntu/pool/main/j/json-c/libjson0-dev_0.11-4ubuntu2_amd64.deb
sudo apt install -y ./libjson0-dev_0.11-4ubuntu2_amd64.deb

and then use my method as it was documented on AskUbuntu

as cited below:

After some trial and error I'm happy with the following solution.

  1. I installed Grive2 from WebUpd8 PPA:

     sudo add-apt-repository ppa:nilarimogard/webupd8
     sudo apt-get update
     sudo apt-get install grive
    
  2. Then I installed grive-tools package manually from The Fan Club Grive Tools PPA (they does not have packages for 15.10 and newer versions):

     wget https://launchpad.net/~thefanclub/+archive/ubuntu/grive-tools/+files/grive-tools_1.15_all.deb
     sudo gdebi grive-tools_1.15_all.deb
    
  3. Then I ran grive-setup and set-up my Google account

     /opt/thefanclub/grive-tools/grive-setup
    
  4. After this I enabled indicators in mate-tweak (System -> Preferences -> Look and Feel -> MATE Tweak)

    Interface tab -> Panel Features -> Enable Indicators

  5. Logged out

  6. After log-in grive-indicator is shown and started to sync my Google Drive automatically

    grive-indicator

  7. To hide its notification I opened Preferences and unchecked Show On Screen Notifications

    grive-indicator properties

  8. To be more productive I added ~/Google Drive folder to Bookmarks with Ctrl+D in Caja.

I'm comfortable with this solution.

2 Likes

To get this working with the GNOME Control Center you should run it like this:

sudo apt install gnome-control-center gnome-online-accounts
XDG_CURRENT_DESKTOP=GNOME gnome-control-center
1 Like