Linux Changing only one icon makes the extension structure incorrect
#1
Lightbulb 
Hi all.

I've been trying for hours to hack the re-Touched skin by changing the icon base color (basically a colour rotate by 180° in Gimp) but am facing a strange error when I install the modified skin from the zip file. If I change just one icon from the /media folder, installing the skin fails with error "incorrect extension structure". One thing I'm certain is that it's not the zipping method I'm using that causes this error for I can successfully zip and install the original structure as many times I want.

So far the only images I could change are the ones from the /background folder. I'm using re-Touched:ditch_4x3hirez as a base. For the sake of the example, I'm trying to replace /media/unknown-user.png with this picture:

Image

EDIT: I shall add that I enabled debugging and checked *all* debugging options. The log tells me *nothing* relevant about the skin structure so I have no idea where to look at first.

EDIT: I tried changing the unknown-user icon using
Code:
gm mogrify -recolor '0 0 1, 0 1 0, 1 0 0'
instead of Gimp (had I done that earlier, I wouldn't have wasted half a day) and now I get another error message about missing files!

EDIT: Now the log has become extremely verbose... Don't know why, maybe because I have restarted OpenELEC, go figure. Anyway here's an excerpt of what I'm getting from /storage/.kodi/temp/kodi.log:

Code:
10:07:52 T:139911227234048   DEBUG: FileManager: create folder special://home/addons/skin.re-touched/background
10:07:52 T:139911227234048   DEBUG: FileManager: copy zip://%2fstorage%2ftmp%2fskin.re-touched.zip/skin.re-touched/background/tv.jpg -> special://home/addons/skin.re-touche
d/background/tv.jpg
10:07:52 T:139911227234048   DEBUG: FileManager: copy zip://%2fstorage%2ftmp%2fskin.re-touched.zip/skin.re-touched/background/SKINDEFAULT.jpg -> special://home/addons/skin.
re-touched/background/SKINDEFAULT.jpg
10:07:52 T:139911227234048   DEBUG: FileManager: copy zip://%2fstorage%2ftmp%2fskin.re-touched.zip/skin.re-touched/LICENSE.txt -> special://home/addons/skin.re-touched/LICE
NSE.txt
10:07:52 T:139911227234048   DEBUG: FileManager: copy zip://%2fstorage%2ftmp%2fskin.re-touched.zip/skin.re-touched/icon.png -> special://home/addons/skin.re-touched/icon.pn
g
10:07:52 T:139911227234048    INFO: ADDON: cpluff: 'Could not read plug-in directory /usr/lib/kodi/addons: No such file or directory'
10:07:52 T:139912486000512   DEBUG: ------ Window Init (DialogYesNo.xml) ------
10:07:52 T:139912486000512    INFO: Loading skin file: DialogYesNo.xml, load type: KEEP_IN_MEMORY
10:07:52 T:139912486000512   DEBUG: ------ Window Init (DialogKaiToast.xml) ------
10:07:52 T:139912486000512   DEBUG: SECTION:LoadDLL(special://xbmcbin/system/ImageLib-x86_64-linux.so)
10:07:52 T:139912486000512   DEBUG: Loading: /usr/lib/kodi/system/ImageLib-x86_64-linux.so
10:07:58 T:139912486000512   DEBUG: ------ Window Deinit (DialogKaiToast.xml) ------
10:08:15 T:139912486000512   DEBUG: Keyboard: scancode: 0x71, sym: 0x0114, unicode: 0x0000, modifier: 0x0
10:08:15 T:139912486000512   DEBUG: OnKey: left (0xf082) pressed, action is Left
10:08:16 T:139912486000512   DEBUG: Keyboard: scancode: 0x24, sym: 0x000d, unicode: 0x000d, modifier: 0x0
10:08:16 T:139912486000512   DEBUG: OnKey: return (0xf00d) pressed, action is Select
10:08:16 T:139912486000512   DEBUG: ------ Window Deinit (DialogYesNo.xml) ------
10:08:16 T:139911227234048   ERROR: GetDirectory - Error getting /usr/share/kodi/sounds/
10:08:16 T:139911227234048   ERROR: GetDirectory - Error getting special://xbmc/sounds/
10:08:16 T:139911227234048    INFO: ADDON: cpluff: 'Could not read plug-in directory /usr/lib/kodi/addons: No such file or directory'
10:08:16 T:139912486000512   DEBUG: CGUIMediaWindow::GetDirectory ()
10:08:16 T:139912486000512   DEBUG:   ParentPath = []
10:08:16 T:139911973828352  NOTICE: Thread BackgroundLoader start, auto delete: false
10:08:16 T:139912486000512   ERROR: failed to load requested skin 'skin.re-touched'

Uh?

Code:
# ls -l /usr/lib/kodi/
total 19072
drwxr-xr-x    6 root     root           118 Jul 28 19:24 addons
-rwxr-xr-x    1 root     root          1905 Jul 28 19:24 kodi-config
-rwxr-xr-x    1 root     root         42864 Jul 28 19:24 kodi-xrandr
-rwxr-xr-x    1 root     root      19481424 Jul 28 19:24 kodi.bin
-rwxr-xr-x    1 root     root          2918 Jul 28 19:24 kodi.sh
drwxr-xr-x    3 root     root           190 Jul 28 19:24 system
OpenELEC:~ # ls -l /usr/lib/kodi/addons/
total 0
drwxr-xr-x    2 root     root            53 Jul 28 19:24 library.kodi.guilib
drwxr-xr-x    2 root     root            52 Jul 28 19:24 library.xbmc.addon
drwxr-xr-x    2 root     root            52 Jul 28 19:24 library.xbmc.codec
drwxr-xr-x    2 root     root            50 Jul 28 19:24 library.xbmc.pvr
Reply
#2
I *think* I sorted this out by recursively deleting $HOME/.config, $HOME/.cache and $HOME/.kodi directories completely:

Code:
OpenELEC:~ # rm -rf .cache/ .config/ .kodi/
OpenELEC:~ # reboot ; exit

I've just tried to reinstall the customized version of this skin and... Halleluiah! Worked. I'm not releasing my attention though...
Reply

Logout Mark Read Team Forum Stats Members Help
Changing only one icon makes the extension structure incorrect0