Launching a Specific Screensaver from a Script
#1
Hi All,

I am trying to write a script that will launch a screensaver that will launch a specific screensaver addon. This is NOT the one that is the current default selection.

I have tried several things (Using unaryclock as an example):

Code:
xbmc.executebuiltin("RunAddon(screensaver.unaryclock)")

Code:
xbmc.executeJSONRPC('{"jsonrpc": "2.0", "method": "Addons.ExecuteAddon", "params": { "addonid": "screensaver.unaryclock" }, "id": 1}')

Code:
xbmc.executebuiltin("RunScript(C:\\XBMC\\Kodi-14\\portable_data\\addons\\screensaver.unaryclock\\default.py)", True)

None of this works, I even wondered about dynamically changing the Screensaver that is currently selected, but there is no way to do that from what I can see (Without hacking settings files, that I really can not do).

There was one work-around, and that was to make the screensavers also an executable script (in the addon.xml) - but that requires a change to the original screensaver (Again something I can't do).

So I was hoping that some-one might be able to assist with a sensible way of launching the non-default screensaver. (Or changing the default screensaver on the fly)

Thanks

Rob
Reply
#2
https://github.com/notspiff/kodi-cmake/c...417e81d47c
https://github.com/notspiff/kodi-cmake/c...b69e597d71
https://github.com/notspiff/kodi-cmake/c...556060abbd
https://github.com/notspiff/kodi-cmake/c...3a9dfeda9f

the last commit will need some adjustment for backports (i have split the file it touches in mainline).

with this RunAddon(<screensaver-id>) works fine.
Reply
#3
Wow! ... actual core code changes ... very nice! Big Grin

Is it possible this will go into the next release?

Thanks

Rob
Reply
#4
don't ask me, i wouldn't know. there's the code, that is all i deal with.
Reply
#5
(2015-05-12, 16:57)ironic_monkey Wrote: don't ask me, i wouldn't know. there's the code, that is all i deal with.

Just wondering if you were planning to do a pull request to the official source?

I was hoping to do an addon to make available for everyone, so can't really hope everyone will recompile Big Grin

Thanks

Rob
Reply
#6
no, i most definitely won't. it's just a big waste of time and nothing i am interested in doing. somebody else will have to suffer that bit.
Reply
#7
(2015-05-12, 17:02)ironic_monkey Wrote: no, i most definitely won't. it's just a big waste of time and nothing i am interested in doing. somebody else will have to suffer that bit.

Thanks anyway.

Does anyone know of a way of doing this without having to change the core code?

Thanks

Rob
Reply

Logout Mark Read Team Forum Stats Members Help
Launching a Specific Screensaver from a Script0