View Single Post
Old 11-03-2024, 03:01 PM   #1
EastEriq
Groupie
EastEriq can program the VCR without an owner's manual.EastEriq can program the VCR without an owner's manual.EastEriq can program the VCR without an owner's manual.EastEriq can program the VCR without an owner's manual.EastEriq can program the VCR without an owner's manual.EastEriq can program the VCR without an owner's manual.EastEriq can program the VCR without an owner's manual.EastEriq can program the VCR without an owner's manual.EastEriq can program the VCR without an owner's manual.EastEriq can program the VCR without an owner's manual.EastEriq can program the VCR without an owner's manual.
 
Posts: 199
Karma: 195502
Join Date: Jan 2018
Device: Cybook Orizon, PocketBook Touch HD
How do handlers work?

Motivated by https://www.mobileread.com/forums/sh...d.php?t=363115, I'm trying to figure out what is the mechanics by which a handler works on a given file. As is known, I can write in /mnt/ext1/system/config/handlers.cfg the default program associated to a given file, so that it will be opened with it when tapping; I can associate a given file extension to a list of programs in extensions.cfg, so that I get on long press a menu for choosing which of them opens it.
I then created a small script in /mnt/ext1/applications/ in order get more insight. My script reads
Code:
#!/bin/sh
dialog 1 "" "$* $0 $! $1 $@" "Ok"
 echo "$* $0 $! $1 $@" > /mnt/ext1/applications/handle.log

If I call this script from shell with or without command line arguments, I get the expected result, that is a dialog with some text and button labels. However, if I tap on a file associated to that script, I only see a hourglass for a second, and see get no new content in the dump file handle.log. What am I missing?

EastEriq is offline   Reply With Quote