Ukelele generated custom keyboard layouts not working in Lion? I created a custom keyboard layout with Ukelele (http://scripts.sil.org/ukelele) in Snow Leopard (idea is to generate scandinavian letters with Alt-key, otherwise have a pretty much standard U.S. layout).  After the upgrade, the old installed (to ~/Library/Keyboard Layouts) layout wasn't working.

Ukelele seems to work OK in Lion, but whether I put the generated keylayout in a bundle or single file, or save it "/Library/Keyboard Layouts" or "~/Library/Keyboard Layouts" doesn't seem to matter.

Help?

EDIT:

@Sergio, I cannot choose the layout in Input Sources.
One keylayout file I tried: http://semeai.org/~sjl/us-scands.keylayout

BTW Off-topic: I don't know if I'm going blind or something, but I can't seem to locate the Library directory in Finder.  I need to copy stuff to and fro from my home directory.

UPDATE:

I've been trying to get this work on my machine for a few hours now and I just thought to try out with a random layout from the 'net; http://colemak.com/Mac was the first to hit the radar.  I did the same thing as with my layout, saved it under Library, and it shows under Input Sources.  My layout still doesn't.  I'll try to create a layout from scratch, see if that helps.  BTW, apparently "New from current input source" in Ukelele is broken in Lion.

UPDATE 2011/08/15:

@Tom:

Copied your keylayout (it naturally ended up in my Junk folder):

midgard (01:55) &gt;ls -l ~/Library/Keyboard\ Layouts/MongolianQWERTY.keylayout
-rw-r--r--@ 1 sjl  staff  44536 Mar 13  2008 /Users/sjl/Library/Keyboard Layouts/MongolianQWERTY.keylayout


Logged out, logged in, isn't showing in Input sources (I'm looking very closely between "Maori" and "Myanmar - QWERTY").

I've also uninstalled bunch of software and plugins giving suspicious messages to system.log, but hasn't helped.

UPDATE 2011/08/16:

I created a test account, and lo, the layout works perfectly for it.  Also the bug in preferences doesn't show for that account.  When trying this on my own account, there are no errors in Console logs with the suggested keywords (I can't seem to locate console.log file, though).

UPDATE 2011/08/16 later: 

Nuking Library/Caches (and relogging) didn't help.

UPDATE 2011/08/17:

I did

% find Library -name "*.plist" -exec mv {} {}.renamed \;


and restarted, but it didn't help.  I restored the situation with

% for file in `find Library -name "*.plist.renamed"`; \
  do mv "$file" "${file//.renamed/}"; done


addendum: I also went through all the .plist files with plutil -s as described in http://www.askdavetaylor.com/can_i_check_my_plist_files_in_mac_os_x_for_problems.html.  There was some brokennes, but in very unrelated applications.

UPDATE 2011/09/10:

I went the extra mile and moved my whole Library away using another account, login in with my own account and observing stuff still not working.  I have copied the layout to /Library/Keyboard Layouts, from where it works for a test account, but not for my own.  Also, if I delete all the custom keylayout files, from everywhere, the Character Viewer and the Keyboard Viewer appaer as selectable to the Input Sources menu and also show under the International menu in the menubar.  As soon as I copy a keyboard layout to Library (home or system), the viewers disappear from both the menu and the Input Sources.

Any ideas how I could get more information from the system? I tried Command-V on boot for verbose boot but that didn't give any extra information for this issue.

SOLUTION FOR POSTERITY:

Adapted from http://support.apple.com/kb/TS1896?viewlocale=en_US for Lion:

sudo rm /System/Library/Caches/com.apple.IntlDataCache*
sudo find /var/ -name "*IntlDataCache*" -exec rm {} \;


Restart.
The layout you gave the link to works fine for me.  Are you sure that your copy of the file ends only in .keylayout and not .keylayout.xml or something else?  You have done logout/login after installing it, right?