Page 1 of 1

Icons in Ubuntu's Launcher

Posted: Sun Aug 12, 2012 5:11 pm
by FourthWorld
When running LC in Ubuntu, clicking the LC icon in the launcher results in a new generic icon for each window it opens, while the icon I clicked doesn't show in its "opened" state.

I suspect this is either due to something in the .desktop file, or something in the way the windows identify themselves to the OS.

If it's solvable with the .desktop file, I'd like to fix it for them. If it's something in the engine, I'd like to find the API they need to use to provide a nicer experience.

I've been busy with work on other platforms and haven't spent too much time looking into this yet, but if any of you have a clue as to why the icons are wonky in Ubuntu I'd much appreciate the tip so we can improve the experience on the world's third most popular desktop OS.

TIA -

Re: Icons in Ubuntu's Launcher

Posted: Mon Aug 13, 2012 6:55 am
by shaosean
I believe it has to do with the way the windows are being created, they need to be assigned as children window of the main app..

Re: Icons in Ubuntu's Launcher

Posted: Mon Aug 13, 2012 3:00 pm
by FourthWorld
Yes, I suspect that's the case, but the trick is finding the specific API so I can pass it along to the team. If I can do the legwork on this, I suspect/hope it'll take that much less time to get it done.

Re: Icons in Ubuntu's Launcher

Posted: Mon Aug 13, 2012 4:54 pm
by FourthWorld
Found the source of the problem, and a workaround to get us by until RunRev updates their Linux engine - see my comment from this morning here:
http://quality.runrev.com/show_bug.cgi?id=10309

Re: Icons in Ubuntu's Launcher

Posted: Mon Aug 13, 2012 5:33 pm
by shaosean
Any chance of a posting containing the contents of that bug report for those of us that cannot afford to pay for access to bug reports?

Re: Icons in Ubuntu's Launcher

Posted: Mon Aug 13, 2012 8:13 pm
by FourthWorld
Good idea - here's the note I posted there this morning:
-------------------------------------------------------------------------

It seems that LC is registering its window class (WM_CLASS) as "Revolution"
instead of "LiveCode". It seems that the app name in the .desktop file is
conflicting with the WM_CLASS set by the engine at runtime, causing the windows
to not be associated with the app in the Launcher.

Adding this line to the .desktop file seems to resolve the issue:
StartupWMClass=Revolution

This is a workaround only, since X still believes the class is "Revolution",
and of course RunRev would prefer that it be "LiveCode". So while this helps
the integration of LC in the Launcher for now, at some point RunRev will want
to modify its declared WM_CLASS.


See these links for details:
https://live.gnome.org/GnomeShell/ApplicationBased
http://askubuntu.com/questions/36434/ho ... e-launcher