Why doesn't GNOME respect OnlyShowIn=KDE; in .desktop files?

I have both KDE and GNOME desktop environments installed on Ubuntu 10.10. When I add the entry OnlyShowIn=GNOME; in a .desktop file, the application doesn't appear in the KDE menu.

However, when I add OnlyShowIn=KDE; the file still appears in the GNOME menu. Does anyone know why this isn't working? Does anyone have a workaround?


Try running sudo update-desktop-database after you make any changes to the .desktop files.