I spent most of today tracking down a problem that turned out to be an
"orphan" .pyc file.  That is, a .pyc file in leo/plugins whose .py
file had been moved to "to the contrib branch."

I run Leo-Editor under Ubuntu 11.10.  Three weeks ago, I stopped using
the gnome window manager and started using the Fluxbox window
manager.  This operating system change had significant impacts on Leo-
Editor behavior.  In general when the changes in Leo-Editor behavior
didn't suit me, I was quickly able to change Fluxbox and/or my Leo-
Editor options to satisfy me.  But in one case I was stumped:  Leo-
Editor had begun opening all URL's with my default web browser
Chrome.  I particularly wanted it to open file:/// URL's with my
default file browser Thunar.

Over the weeks, none of the fixes I tried helped.  So I spent today
using g.trace() and g.pdb() to find out exactly what was going on; and
I discovered that the web browser open was occurring in UNL.pyc---but
I didn't have the source UNL.py.

bzr -v log leo/plugins/UNL.py
Told me that on 2011-06-02 Edward K. Ream had moved UNL.py "to the
contrib branch."

I conjecture that BZR is set up for Leo-Editor to ignore .pyc files.
So moving a .py file can leave an orphan .pyc file on a user's system.

At some point for some reason, I changed myLeoSettings.leo to enable
UNL.py.  I didn't notice that there should no longer be a UNL module
because I had an orphan UNL.pyc file so Leo-Editor was happy to enable
plugin UNL.py.

Renaming UNL.pyc to xxxUNL.pyc solved my problems.  Now on my system
Leo-Editor opens file:/// URL's using my default file browser Thunar.

In the future whenever I do a pull, I will also delete all .pyc files
in my local Leo-Editor tree---unless someone suggests a better
strategy.

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en.

Reply via email to