Google Chrome support

Bug #606956 reported by j0rd
50
This bug affects 10 people
Affects Status Importance Assigned to Milestone
RescueTime Linux Uploader
In Progress
Low
Dirk T

Bug Description

I need an extension for Google Chrome under Linux so that it'll track my web pages properly.

Epiphany already has an extension and Chrome uses webkit on the backend, so I think you should be able to share most of the code.

Related branches

dmitry (dmazin)
description: updated
Revision history for this message
Joseph Lisee (jlisee) wrote :

I already have this completed. The chrome extension works by logging the current URL every time it changes to local HTML5 storage. The desktop application then uses the SQLite3 command line tool to retrieve the URL when needed. The patch is attached.

Revision history for this message
Joseph Lisee (jlisee) wrote :

Binary file not in patch.

Revision history for this message
Joseph Lisee (jlisee) wrote :

Binary file not in patch.

Revision history for this message
Joseph Lisee (jlisee) wrote :

This an the other two pngs go into the "chrome_extension" directory.

Revision history for this message
morepractice (morepractice) wrote :

It's working on my Chrome. I have a tutorial on my blog: http://ubundance.blogspot.com/2010/08/installing-rescuetime-on-ubuntu-1004.html

Revision history for this message
Joseph Lisee (jlisee) wrote :

The official extension integrates properly with the data provided from the RescueTime linux component? The much simpler firefox and google chrome extensions which come RescueTime linux work perfectly fine for me.

Revision history for this message
morepractice (morepractice) wrote :

Correct me if I am mistaken, but you cannot keep the record on your account, right? From what I see, I could not log in when I used the extension alone. So if you are switching OS's around (or use USB boot OS at lab/library, like me) it's not possible to keep track of your productivity.

Revision history for this message
Joseph Lisee (jlisee) wrote :

To be clear, I use multiple machines with RescueTime Linux Uploader, and its Firefox and Chrome extensions. All activity gets logged and uploaded to a single rescue time account.

When I checked out the official extensions, it looked like it was impossible to tie the extensions to an actual RescueTime account so is they looked pretty useless to me.

Revision history for this message
j0rd (jordan-gocubeco) wrote : Re: [Bug 606956] Re: Google Chrome support

I believe you input a username/password into the linux tools, and then it
logs the time to that user account.

If you set rescume time up on all the machines/OS's you use using the same
account, I assume it would track off of them.

On Sat, Aug 7, 2010 at 12:59 AM, Joseph Lisee <email address hidden>wrote:

> To be clear, I use multiple machines with RescueTime Linux Uploader, and
> its Firefox and Chrome extensions. All activity gets logged and
> uploaded to a single rescue time account.
>
> When I checked out the official extensions, it looked like it was
> impossible to tie the extensions to an actual RescueTime account so is
> they looked pretty useless to me.
>
> --
> Google Chrome support
> https://bugs.launchpad.net/bugs/606956
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in RescueTime Linux Uploader: New
>
> Bug description:
> I need an extension for Google Chrome under Linux so that it'll track my
> web pages properly.
>
> Epiphany already has an extension and Chrome uses webkit on the backend, so
> I think you should be able to share most of the code.
>
>
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/rescuetime-linux-uploader/+bug/606956/+subscribe
>

Revision history for this message
Eronarn Palazzo (eronarn) wrote :

I installed on Ubuntu 10.04 using the 'experimental' branch. It did not work until I followed the expanded instructions here: https://answers.launchpad.net/rescuetime-linux-uploader/+question/121421

Then it still didn't work - until I found out that I don't have sqlite3 installed. It would be nice if the code provided some feedback about this requirement, just to make it more user-friendly. I only noticed when I ran it in terminal rather than via the GNOME panel.

Thanks for the patch, by the way. I was very frustrated when I found out that the official client doesn't integrate, but this makes up for it. (Though it would be nice if the RescueTime icon in the extension had the same functionality as the official extension (bringing you to your dashboard.)

Revision history for this message
Joseph Lisee (jlisee) wrote :

Glad someone found the work useful. I will try to make the updates you suggested with linking the button, along with an error message for missing sqlite3 (along with a note in the readme).

Revision history for this message
Chris V (varenc) wrote :

So if I install the experimental branch will chrome work? do I need to do anything else? Really appreciate this feature!

Revision history for this message
Neil Lall (nulall) wrote :

How exactly do we use this patch?

Revision history for this message
Joseph Lisee (jlisee) wrote :

Your best bet is try my experimental branch which already has this patch applied:
https://code.launchpad.net/~jlisee/rescuetime-linux-uploader/experimental

Revision history for this message
Paul Dubs (paul-dubs) wrote :

I have had several issues with the patch. First the Extension has to be installed, you will have to go to the extensions menu and click the plus beside "developer mode", then you select "load unpacked extension" and navigate to the "chrome_extension" folder and click open. This should add the Extension and it will write all your visited urls to a local storage.
Then you will have to make the extended_info script that will use this info executable: chmod +x /usr/local/lib/python2.6/dist-packages/RescueTimeUploader-105-py2.6.egg/RescueTimeUploader/extensions/Google-chrome/extended_info

If you are using chromium instead of the official google chrome you will have to add a symlink:
ln -s /usr/local/lib/python2.6/dist-packages/RescueTimeUploader-105-py2.6.egg/RescueTimeUploader/extensions/Google-chrome/ /usr/local/lib/python2.6/dist-packages/RescueTimeUploader-105-py2.6.egg/RescueTimeUploader/extensions/Chromium-Browser/

Revision history for this message
Filo (krzysztof-gorgolewski) wrote :

extended_info script requires sqlite3

Revision history for this message
Toby Fox (tobyfox) wrote :

For those that end up here in the future having issues with getting extended info (the stuff that lets RescueTime know what specific pages you are visiting) working with Chromium, here is what worked for me:

-Having installed the default RescueTime Linux Uploader (version 99) and finding it useless with Chromium, I went to Joseph Lisee's experimental branch (https://code.launchpad.net/~jlisee/rescuetime-linux-uploader/experimental), downloaded that branch using bzr (in a console run: bzr branch lp:~jlisee/rescuetime-linux-uploader/experimental), and followed the README file to install his version on top of the one I already had.
-I removed the official RescueTime extension for chrome since, as people have said, it doesn't connect with your account., just creates a separate mini-account for just your browsing activity. We need to install an unofficial extension that the Linux uploader can use to get the extended info.
-I followed all of Paul Dubs directions (above) to install the extension from chrome_extension iyoun the experimental branch just downloaded. Also make extend_info executable and create that symlink.
-AND THEN THERE IS ONE MORE STEP I HAD TO DO: I had to do was edit the "extended_info" script (i.e. sudo gedit /usr/local/lib/python2.6/dist-packages/RescueTimeUploader-105-py2.6.egg/RescueTimeUploader/extensions/Google-chrome/extended_info). Near the top (for me line #42) you'll find a line that begins "localStorageDir = join(...". This line tells RescueTime what folder to look for the local storage in which the chrome extension we just installed stores the current URL being viewed. In that line replace "google-chrome" with "chromium" so that the script knows to look in the folder where chromium puts it.

NOTE: the Linux uploader will now not work with the official Google Chrome browser, only Chromium. If you got it working with Google Chrome before, but now want it to work with Chromium, after doing all the steps above you may have to delete the file in which the Linux uploader was keeping track in order to get that extended info (rm ~/.rescuetime/google-chrome_extension-id.txt).

Good luck folks.

Revision history for this message
Toby Fox (tobyfox) wrote :

Just wanted to add one final thing. Unless I am mistaken, when you use Chrome/Chromium's "load unpacked extension" and choose the "chrome_extension" directory, the browser does not copy the extension files to anywhere else but continues to use them from that directory, so if you delete it you'll no longer have the extension.

So make sure you first put the extension somewhere it can stay (I put it in ~/.config/chromium/Default/Extensions/rescuetime-linux-uploader-extension/). I had to delete ~/.rescuetime/google-chrome_extension-id.txt again after losing the extension and unpacking it again. Then it worked.

Revision history for this message
Toby Fox (tobyfox) wrote :

Sorry to spam this bug, but I keep posting prematurely. Don't put the extension in ~/.config/chromium/Default/Extensions/ because it seems to get deleted there. Put it somewhere else. Also, after installing/unpacking the extension, I believe you need to restart your browser before the extension creates the file that the uploader uses to get the extended info.

Dirk T (miriup)
Changed in rescuetime-linux-uploader:
assignee: nobody → Dirk T (miriup)
status: New → Triaged
importance: Undecided → High
Dirk T (miriup)
Changed in rescuetime-linux-uploader:
status: Triaged → In Progress
importance: High → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.