Specifying a USB thumb drive to be the startup window

Hi all, this is my first post so I apologize if this is a noob question, Ive researched the forums but have yet to find the information I need.

Im setting up an RPi 1 B to be a sort of glorified video player where the video is on a thumb drive . This device is going to be used by some elderly persons.

Ive been able to setup the video section to be the startup window, but I want to go a layer deeper. If a USB is plugged in that should be the startup window, otherwise go to the video window. Thats what Im trying to do.

Im familiar with Python and even though Im not a Linux guru, Im not a linux novice either. Thank you in advanced for any assistance you can provide, or if any further details are needed.

Best Regards,
Jorge

That is a very sparse service that simply posts a message on start-up. I figure you could use it as your base. Just put what you want to run on start up into service.py.

Check out the ActivateWindow builtin function here: http://kodi.wiki/view/List_of_built-in_functions. If Video, you can specify a particular folder to start in.

I suppose you would just check for a usb stick, if present then ActivateWindow including as an argument the location of the mounted usb.

If you want to rename the service, then change the folder name and edit the addon.xml accordingly.

1 Like

Hi Karnage,

Thank you for your help. Iā€™m going to look into these and see if I can get things going.

Thanks again,
Jorge