0

Here's How to Get OpenDrive in Linux!

I hope OpenDrive won't mind me doing this as just a help for the community. :)

For those who want to use OpenDrive in Linux without having to launch a web browser, I have found a way to do it (well, I admit it's kind of "cheating" in a sense). These instructions were tested in Linux Mint 14 KDE. You may have to adapt them to your own version of Linux.

  1. I'm going to attach the full .zip with the icon to this message. Unzip it to a directory on your computer (Maybe create a "ChromeExtensions" directory in your home directory.) If you were able to unzip the .zip file into that directory, then skip step 2.

  2. If you were unable to get the .zip file in step one, you can create a 128 x 128 pixel icon (name it opendrive-icon-128.png) and be sure it's transparent background. Then create a manifest.json file with the following text:

{

"name": "OpenDrive",

"version": "1",

"manifest_version": 2,

"icons": { "128": "opendrive-icon-128.png" },

"app": {

"urls": [

"https://www.opendrive.com/"

],

"launch": {

"web_url": "https://www.opendrive.com/login"

}

}

}

  1. Open Google Chrome (You can get a linux version here: https://www.google.com/intl/en/chrome/browser/?hl=en&platform=linux&brand=CHFK)

  2. Click on the settings icon (upper right, could be wrench or 3 horizontal lines).

  3. Tools-Extensions. Be sure "Developer mode" is checked.

  4. Click the "Load Unpacked Extension" button then navigate to the directory you unzipped (or created) the icon and manifest file to.

  5. Click Ok. It will now be loaded into Chrome.

NOTE: You SHOULD NEVER move or remove the extension directory you unzipped/created the files in!

To get it into your Desktop Task Bar/System Tray and menus:

  1. Click on a new tab in Chrome to get to your extensions.

  2. Right click on the OpenDrive icon and choose to "Create Shortcut". Be sure only "Desktop" is checked and click "Create".

  3. On your desktop will be a rather cryptically named file that may start with "chrome-". Right click on it and open it in a text editor (like Kate or GEdit).

The command you enter in the "Command Line" part is what is on the entire "Exec=" line (just don't copy the "Exec=" part but everything after that on that same line.).

The icon to use is on the "Icon=" line. As with the "Exec=" line, do not copy the "Icon=" part, but copy all the rest on that same "Icon=" line.

For example, if you are using KDE (I have I think the latest version that comes with Linux Mint 14):

a. Right click on the Kickoff button and choose "Edit Applications".

b. Click on the category on the left. I choose to put my menu item in "Utilities". Click the "New Item" icon.

c. Fill in the following:

Name: Open Drive

Description: Cloud Drive Storage

Command: (Paste in what you found in step 3 above.)

Check box: Place In System Tray (optional)

Click the blank Icon button to the right of the Name. In the "Search" box, paste in the icon line from step 3 above. Click Ok then exit the Menu editor. Your item should update automatically.

Now to get it into the system tray, even if the Place In System Tray is checked, it might not appear. Right click on your task bar's "cashew" on the far right and select "Unlock Widgets". Next find the menu item you just made and right click on it. Select "Add To Panel".

If you want to move it on the panel, you'll have to click the "cashew", choose Panel Settings, Hover over the icon and click and drag to move it to a new place on that panel.

That's it! You've now got a handy looking icon to OpenDrive. When you launch it, it will launch a window that looks like an application and shows the OpenDrive login page (not the pop-up). Log in and it will take you to your directories. It looks much like a normal application! You can drag and drop files from your file Explorer (Dolphin, for example) into OpenDrive as well.

This is the closest I can get to integrating OpenDrive into Linux so far.

NOTE: OpenDrive doesn't need my permission to package this and put it on the Chrome Web Store because technically it's their service. I just came up with how to create the extension and steps to add to Linux menus and panel. I wouldn't mind a little credit (a short mention) for the work though. ;)

UPDATE: It appears that they took out the "create desktop shortcut" in the Linux version of Google Chrome due to the bug mentioned. Here's how to add it to your start menu and task bar:

http://forums.linuxmint.com/viewtopic.php?f=47&t=131050&p=708318#p708317

It mentioned GMail but the first part where you go into tools - extensions to find the ID worked for OpenDrive.

2 comments

Please sign in to leave a comment.