Kodi Community Forum
[Ubuntu] xbmc icon broken for self-compiled xbmc version - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Kodi Application (https://forum.kodi.tv/forumdisplay.php?fid=93)
+--- Thread: [Ubuntu] xbmc icon broken for self-compiled xbmc version (/showthread.php?tid=199677)



[Ubuntu] xbmc icon broken for self-compiled xbmc version - beauman - 2014-07-10

Hello!

If I use a self-compiled version of xbmc, the icon displayed in the launcher and for ALT+TAB is broken.

This is the launcher: http://slexy.org/view/s2dzvV0N2s

The launcher itself is fine, it works for the original xbmc version from the Ubuntu archives.

It looks like this: http://imgur.com/a/SW1sS

I don't get what makes my binary different from the official one.

Thanks!
Beauman


RE: [Ubuntu] xbmc icon broken for self-compiled xbmc version - wsnipex - 2014-07-11

if you compiled with default options, then your xbmc.bin binary is in /usr/local/lib/xbmc/xbmc.bin
similarly the icons are under /usr/local/share/..


RE: [Ubuntu] xbmc icon broken for self-compiled xbmc version - beauman - 2014-07-11

Hi wsnipex!

Thanks for the support.

Like I said, the launcher itself actually works. I've been debugging this issue now for two evening, it's really a tricky one.

The only hint I have is that the Unity launch bar does recognize the original xbmc.bin file, exchanging only the xbmc.bin to the self compiled version breaks the icon.

I've been testing this now on a fresh Ubuntu install, where xbmc was never before installed via the package manager.
I do configure it with --prefix=/usr. I compile it as usual and say 'sudo make install'.

The latest starter I was testing with is this: http://slexy.org/view/s2Ahinu7GQ

I can say 'sudo desktop-file-validate /usr/share/applications/xbmc.desktop' which leads to no messages.
I install it with 'sudo desktop-file-install /usr/share/applications/xbmc.desktop'
And restart the database with 'sudo update-desktop-database'.

The icon is broke when I launch this. It works by just replacing /usr/lib/xbmc/xbmc.bin

First I thought that apt-get install xbmc does some registering with the database or something like that. So that's why I now tested on a fresh Ubuntu install.

One thing that I didn't mention so far is, that I compile the fernetMenta/xbmc version. That's the version used in OpenElec with dual-head support.
But that shouldn't make a difference, right?

Regards, beauman


RE: [Ubuntu] xbmc icon broken for self-compiled xbmc version - wsnipex - 2014-07-11

using Fernets tree makes no difference at all. I've never needed to use desktop-file-install and the likes.
Btw, I provide a ppa with Fernets master: https://launchpad.net/~wsnipex/+archive/ubuntu/xbmc-fernetmenta-master


RE: [Ubuntu] xbmc icon broken for self-compiled xbmc version - beauman - 2014-07-12

https://github.com/xbmc/xbmc and https://github.com/FernetMenta/xbmc do make a difference. It always works to compile and 'sudo make install' https://github.com/xbmc/xbmc, while for https://github.com/FernetMenta/xbmc the icon is broken. It worked one time yesterday for me with https://github.com/FernetMenta/xbmc directly after I had https://github.com/FernetMenta/xbmc installed. This was the second encounter that the icon does work for the fernetMenta branch. Looks like this is a glitch in Unity. I'll leave this item now for a while, after it's just a minor bug. Recap: xbmc.bin of fernetMenta and our derivative have a buggy icon display. The icon does work for the xbmc master branch. This bug is introduced in fernetMentas branch. It's not necessarily a bug in there, it could also be a glitch in Unity itself.

To reproduce this bug, get a fresh install of Ubuntu 14.04 LTS, and follow this script: https://github.com/ProfessorKaos64/RetroRig/blob/beta/supplimental/build-xbmc.sh
Line 121 and 123 could be exchanged with 'git clone https://github.com/FernetMenta/xbmc' and 'git checkout gotham' respectively.

wsnipex, thanks for the support! You pointed me in the right direction.


RE: [Ubuntu] xbmc icon broken for self-compiled xbmc version - wsnipex - 2014-07-12

git diff of the media dir doesn't show any difference between xbmc master and fernetmenta master.
So I'm not sure where this comes from, but tbh I'm not going to install a fresh ubuntu to test it.


RE: [Ubuntu] xbmc icon broken for self-compiled xbmc version - beauman - 2014-07-12

That's totally fine! I wanted to know, if there's some kind of special trick to package fernetMentas version. Well, there is no, and I know this now.

You did help me zeroing in on this issue!

Things left to do for me are to find somebody at https://github.com/FernetMenta/xbmc how can confirm this issue or maybe has some opinion about it. I think it's worth looking into this. I understood the fernetMenta branch is merged upstream to https://github.com/xbmc/xbmc, so it's likely that it will break the icon display in there too.

To find out the strange behavior of the Unity launch bar, it probably needs running it as a debug version.

I've stopped working on this now in favor of more urgent issues. I'll report back, when I pick up my work on this again.


RE: [Ubuntu] xbmc icon broken for self-compiled xbmc version - FernetMenta - 2014-07-12

You are talking about my Gotham branch, not master, right? It's been a while my Gotham branch has been rebased and it misses this commit https://github.com/xbmc/xbmc/commit/18cf398c66b5e164420431615ba2da60a612d257 after rename of icons.


RE: [Ubuntu] xbmc icon broken for self-compiled xbmc version - beauman - 2014-07-13

Hello FernetMenta!

Thanks for joining this thread!

I got it working now, it's indeed this line here: https://github.com/FernetMenta/xbmc/blob/gotham/xbmc/windowing/X11/WinSystemX11.cpp#L1052

I was wondering, why it needs to be hard-coded in there. Why override the settings from the desktop launchers with so much code? Is that needed for OpenELEC?

But I'm really glad, that it's working now Laugh

Regards,
Beauman


RE: [Ubuntu] xbmc icon broken for self-compiled xbmc version - ProfessorKaos64 - 2014-07-13

Hi FernetMenta and wsnipex, thank you SO much for helping us figure this out (I started this project back in may). I really appreciate your time and effort in assisting us.


RE: [Ubuntu] xbmc icon broken for self-compiled xbmc version - FernetMenta - 2014-07-13

(2014-07-13, 12:29)beauman Wrote: I was wondering, why it needs to be hard-coded in there. Why override the settings from the desktop launchers with so much code? Is that needed for OpenELEC?

In regard to Unity this may be an override but with WMs like Fluxbox you won't get any icon without this code.