Quantcast
Channel: Kodi Community Forum - Skinning
Viewing all articles
Browse latest Browse all 1818

Linux - Python add-on for Custom GUI using WindowXML - detect SD card insertion

$
0
0
I have a Python add on driving a custom GUI that is still under development, but seems to be working well.

At the linux OS level I am able to see a notification of SD card being inserted and automatically mounted via udev rules.

How do I react in this Python add on to this SD card insertion/mounting event. I would like to change the GUI to show appropriate controls. 

Creating the GUI is not a problem for me, what I need help with is understanding how can this Python Add on monitor/detect the SD card being inserted.

If needed, using udev-rules I  can even write a script that will run when the card is inserted. But how do I get that script to call a method in this Python add on so the GUI gets updated.

Thanks in advance.

Viewing all articles
Browse latest Browse all 1818

Trending Articles