2023-01-26, 15:38
Hello,
My Kodi 19 (used with Mac OS) is quite long to shutdown. It's not a big deal, but I'd like to display a message WHILE Kodi is shutting down, to be sure I pressed the good button on the remote. So I created a python script that display a message and then shut down Kodi. I launch this script with a shortcut on the menu. Here's the script :
import xbmc, xbmcgui
dialog = xbmcgui.Dialog()
ret = dialog.yesno('Kodi va quitter', 'Adios amigos !',' ',' ',5000)
xbmc.executebuiltin('Shutdown')
It works, but it's not very elegant : it displays the message, and only starts shuting down AFTER displaying the message.
I tried with notifications, it's worse, the shutdown action kills the notification and I don't even have the time to read it.
I would prefer a message displaying WHILE Kodi is shuting down.
Is that possible ?
Thanks !
My Kodi 19 (used with Mac OS) is quite long to shutdown. It's not a big deal, but I'd like to display a message WHILE Kodi is shutting down, to be sure I pressed the good button on the remote. So I created a python script that display a message and then shut down Kodi. I launch this script with a shortcut on the menu. Here's the script :
import xbmc, xbmcgui
dialog = xbmcgui.Dialog()
ret = dialog.yesno('Kodi va quitter', 'Adios amigos !',' ',' ',5000)
xbmc.executebuiltin('Shutdown')
It works, but it's not very elegant : it displays the message, and only starts shuting down AFTER displaying the message.
I tried with notifications, it's worse, the shutdown action kills the notification and I don't even have the time to read it.
I would prefer a message displaying WHILE Kodi is shuting down.
Is that possible ?
Thanks !