← Back to team overview

indiv-screenlets-dev team mailing list archive

[Bug 597252] Re: [Tomboy] Tomboy screenlet uses wrong (old) notes directory for Tomboy 1.0.0

 

** Changed in: indiv-screenlets
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of
Individual Screenlets Developers, which is subscribed to Individual
Screenlets.
https://bugs.launchpad.net/bugs/597252

Title:
  [Tomboy] Tomboy screenlet uses wrong (old) notes directory for Tomboy
  1.0.0

Status in Screenlets — individual widgets development:
  Fix Released

Bug description:
  After noting that the Tomboy screenlet wasn't showing all my notes, I
  started digging...

  THE PROBLEM:
  Tomboy screenlet v0.1 (bundled with 0.1.2-7 on my 9.10/Karmic system) looks for notes in ~/.tomboy. This path is hard-coded in /usr/share/screenlets/Tomboy/TomboyScreenlet.py and used unless $TOMBOY_PATH is set in the environment. But Tomboy 1.0.0, which supposedly shipped with Karmic, stores its notes in ~/.local/share/tomboy (see: https://bugs.launchpad.net/ubuntu/+source/tomboy/+bug/580333).

  A WORKAROUND:
  Since I had upgraded from an earlier release, Tomboy 1.0.0 helpfully left behind a message in a file named "YOUR_NOTES_HAVE_MOVED!" in the old notes directory, ~/.tomboy. This gave me the idea to move the old notes directory out of the way (renamed it to ~/.tomboy__old), then creating a symbolic link to ~/.local/share/tomboy in place of ~/.tomboy. After quitting and re-launching the Tomboy screenlet, the screenlet shows the correct notes.

  POSSIBLE PERMANENT FIX:
  I'll look into creating a patch to test the output of 'tomboy --version' and choose the notes directory appropriately. As a disclaimer, I'm terrible about starting projects (even simple ones) and not finishing them.

To manage notifications about this bug go to:
https://bugs.launchpad.net/indiv-screenlets/+bug/597252/+subscriptions