icon in Notification command
#1
Hi there,

Im using this tutorial for a simple notification box: http://kodi.wiki/view/GUI_tutorial

I was wondering what the path to the icon.png should be.

I have my plugin called plugin.program.xxx but if I add it to the text below it does not work:

xbmc.executebuiltin('Notification(Hello World,This is a simple example of notifications,5000,/script.hellow.world.png)') ORIGINAL TEXT IN THE WIKI

xbmc.executebuiltin('Notification(KODI WILL NOW REBOOT,Your settings have not changed,5000,/plugin.program.xxx/icon.png)') MODIFIED TEXT

Hoping someone can help.
Reply
#2
You need to get the path to the addon directory, then add your image path to the end.

Code:
addon= xbmcaddon.Addon()
path = addon.getAddonInfo('path').decode("utf-8") + "/your_image.png"

xbmc.executebuiltin('Notification(KODI WILL NOW REBOOT, Your settings have not changed, 5000, %s)' % (path))
Reply
#3
I recommend to use xbmcgui.Dialog().notification(): http://romanvm.github.io/Kodistubs/_auto...tification
A custom icon needs to be provided as a full path to a texture image (jpg or png).
Reply

Logout Mark Read Team Forum Stats Members Help
icon in Notification command0