Icons in Ubuntu's Launcher

Deploying to Linux? Get penguinated here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9852
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Icons in Ubuntu's Launcher

Post by FourthWorld » Sun Aug 12, 2012 5:11 pm

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 -
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

shaosean
Posts: 906
Joined: Thu Nov 04, 2010 7:53 am

Re: Icons in Ubuntu's Launcher

Post by shaosean » Mon Aug 13, 2012 6:55 am

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..

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9852
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Icons in Ubuntu's Launcher

Post by FourthWorld » Mon Aug 13, 2012 3:00 pm

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.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9852
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Icons in Ubuntu's Launcher

Post by FourthWorld » Mon Aug 13, 2012 4:54 pm

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
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

shaosean
Posts: 906
Joined: Thu Nov 04, 2010 7:53 am

Re: Icons in Ubuntu's Launcher

Post by shaosean » Mon Aug 13, 2012 5:33 pm

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?

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9852
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Icons in Ubuntu's Launcher

Post by FourthWorld » Mon Aug 13, 2012 8:13 pm

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
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Post Reply

Return to “Linux”