Hello.
From what i can see the script does not run at all.
When i do a long press on the “i” key with this
<keymap><global><key id="61480" mod="longpress">RunScript(/home/osmc/scripts/download.py)</key></global></keymap>
keymapping in the .kodi/userdata/keymaps/osmc/gen.xml
location the ~/.kodi/temp/kodi.log
file reads the following
PLEASE NOTE i short and long pressed in this file
osmc@SkydiveDanielsonOSMC:~$ tail -f ~/.kodi/temp/kodi.log
2025-05-25 20:48:28.756 T:2823 debug <general>: Keyboard: scancode: 0xb3, sym: 0x28 (leftparen), unicode: 0x28, modifier: 0x0
2025-05-25 20:48:28.756 T:2823 debug <general>: HandleKey: long-leftbracket (0x100f028) pressed, window 10000, action is info
2025-05-25 20:48:28.805 T:2823 debug <general>: Keyboard: scancode: 0xb3, sym: 0x28 (leftparen), unicode: 0x28, modifier: 0x0
2025-05-25 20:48:28.805 T:2823 debug <general>: HandleKey: long-leftbracket (0x100f028) pressed, window 10000, action is info
2025-05-25 20:48:28.876 T:3063 debug <general>: Thread Timer 3673116976 terminating
2025-05-25 20:48:28.880 T:2823 debug <general>: Keyboard: scancode: 0xb3, sym: 0x28 (leftparen), unicode: 0x28, modifier: 0x0
2025-05-25 20:48:28.880 T:2823 debug <general>: HandleKey: long-leftbracket (0x100f028) pressed, window 10000, action is info
2025-05-25 20:48:28.880 T:2823 debug <general>: Keyboard: scancode: 0xb3, sym: 0x28 (leftparen), unicode: 0x28, modifier: 0x0
2025-05-25 20:48:58.881 T:3058 debug <general>: Thread JobWorker 3902288176 terminating (autodelete)
2025-05-25 20:51:28.929 T:2823 debug <general>: ------ Window Init () ------
2025-05-25 20:51:36.196 T:2933 debug <general>: CLibInputKeyboard::ProcessKey - using delay: 750ms repeat: 80ms
2025-05-25 20:51:36.196 T:3066 debug <general>: Thread Timer start, auto delete: false
2025-05-25 20:51:36.230 T:2823 debug <general>: Keyboard: scancode: 0xb3, sym: 0x28 (leftparen), unicode: 0x28, modifier: 0x0
2025-05-25 20:51:36.231 T:2823 debug <general>: HandleKey: leftbracket (0xf028) pressed, screen saver/dpms woken up
2025-05-25 20:51:36.292 T:3066 debug <general>: Thread Timer 3673116976 terminating
2025-05-25 20:51:36.307 T:2823 debug <general>: Keyboard: scancode: 0xb3, sym: 0x28 (leftparen), unicode: 0x28, modifier: 0x0
2025-05-25 20:51:37.234 T:2823 debug <general>: ------ Window Deinit () ------
2025-05-25 20:51:37.332 T:2933 debug <general>: CLibInputKeyboard::ProcessKey - using delay: 750ms repeat: 80ms
2025-05-25 20:51:37.332 T:3067 debug <general>: Thread Timer start, auto delete: false
2025-05-25 20:51:37.348 T:2823 debug <general>: Keyboard: scancode: 0xb3, sym: 0x28 (leftparen), unicode: 0x28, modifier: 0x0
2025-05-25 20:51:37.348 T:2823 debug <general>: HandleKey: leftbracket (0xf028) pressed, window 10000, action is info
2025-05-25 20:51:37.349 T:3068 debug <general>: Thread JobWorker start, auto delete: true
2025-05-25 20:51:37.357 T:3068 debug <general>: [threads] name: 'JobWorker' priority: '3'
2025-05-25 20:51:37.452 T:3067 debug <general>: Thread Timer 3673116976 terminating
2025-05-25 20:51:37.494 T:2823 debug <general>: Keyboard: scancode: 0xb3, sym: 0x28 (leftparen), unicode: 0x28, modifier: 0x0
2025-05-25 20:51:38.572 T:2933 debug <general>: CLibInputKeyboard::ProcessKey - using delay: 750ms repeat: 80ms
2025-05-25 20:51:38.572 T:3069 debug <general>: Thread Timer start, auto delete: false
2025-05-25 20:51:38.602 T:2823 debug <general>: Keyboard: scancode: 0xb3, sym: 0x28 (leftparen), unicode: 0x28, modifier: 0x0
2025-05-25 20:51:38.602 T:2823 debug <general>: HandleKey: leftbracket (0xf028) pressed, window 10000, action is info
2025-05-25 20:51:39.330 T:2823 debug <general>: Keyboard: scancode: 0xb3, sym: 0x28 (leftparen), unicode: 0x28, modifier: 0x0
2025-05-25 20:51:39.330 T:2823 debug <general>: HandleKey: long-leftbracket (0x100f028) pressed, window 10000, action is info
2025-05-25 20:51:39.428 T:2823 debug <general>: Keyboard: scancode: 0xb3, sym: 0x28 (leftparen), unicode: 0x28, modifier: 0x0
2025-05-25 20:51:39.428 T:2823 debug <general>: HandleKey: long-leftbracket (0x100f028) pressed, window 10000, action is info
2025-05-25 20:51:39.525 T:2823 debug <general>: Keyboard: scancode: 0xb3, sym: 0x28 (leftparen), unicode: 0x28, modifier: 0x0
2025-05-25 20:51:39.526 T:2823 debug <general>: HandleKey: long-leftbracket (0x100f028) pressed, window 10000, action is info
2025-05-25 20:51:39.575 T:2823 debug <general>: Keyboard: scancode: 0xb3, sym: 0x28 (leftparen), unicode: 0x28, modifier: 0x0
2025-05-25 20:51:39.575 T:2823 debug <general>: HandleKey: long-leftbracket (0x100f028) pressed, window 10000, action is info
2025-05-25 20:51:39.684 T:2823 debug <general>: Keyboard: scancode: 0xb3, sym: 0x28 (leftparen), unicode: 0x28, modifier: 0x0
2025-05-25 20:51:39.684 T:2823 debug <general>: HandleKey: long-leftbracket (0x100f028) pressed, window 10000, action is info
2025-05-25 20:51:39.727 T:2823 debug <general>: Keyboard: scancode: 0xb3, sym: 0x28 (leftparen), unicode: 0x28, modifier: 0x0
2025-05-25 20:51:39.727 T:2823 debug <general>: HandleKey: long-leftbracket (0x100f028) pressed, window 10000, action is info
2025-05-25 20:51:39.838 T:2823 debug <general>: Keyboard: scancode: 0xb3, sym: 0x28 (leftparen), unicode: 0x28, modifier: 0x0
2025-05-25 20:51:39.839 T:2823 debug <general>: HandleKey: long-leftbracket (0x100f028) pressed, window 10000, action is info
2025-05-25 20:51:39.888 T:2823 debug <general>: Keyboard: scancode: 0xb3, sym: 0x28 (leftparen), unicode: 0x28, modifier: 0x0
2025-05-25 20:51:39.888 T:2823 debug <general>: HandleKey: long-leftbracket (0x100f028) pressed, window 10000, action is info
2025-05-25 20:51:39.980 T:3069 debug <general>: Thread Timer 3673116976 terminating
2025-05-25 20:51:40.007 T:2823 debug <general>: Keyboard: scancode: 0xb3, sym: 0x28 (leftparen), unicode: 0x28, modifier: 0x0
2025-05-25 20:51:40.008 T:2823 debug <general>: HandleKey: long-leftbracket (0x100f028) pressed, window 10000, action is info
2025-05-25 20:51:40.008 T:2823 debug <general>: Keyboard: scancode: 0xb3, sym: 0x28 (leftparen), unicode: 0x28, modifier: 0x0
Also the log my script makes is empty