Comment 5 for bug 753305

The only way to fix this bug (and many others, not strictly related to python, I guess) would be to support something that unity really would need: when an app that has no related .desktop file is in the launcher and the "Keep in launcher" menu item has been selected, unity should generate a .desktop file for it (properly filled with all the retrievable fields, including StartupWMClass) in ~/.local/share/applications/unity.

It's not that hard, but the fact is: which is the component that should do it? I'd say no to BAMF, making this directly in unity but this would need to double the implementation in unity-2d... So, when this doubt is solved, the implementation will follow ;)