View Single Post
Old 03-14-2012, 04:32 PM   #253
hfpop
Addict
hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.
 
Posts: 250
Karma: 136662
Join Date: Apr 2011
Device: N/A
I tried an idea: I would like to use a launchpad key command to modify reader.pref and restart the framework after a mistaken modification by Aa menu. I.E. the modifications changed back by Aa menu are the lines

Code:
FONT_FAMILY= 
HORIZONTAL_MARGIN=
In launchpad folder I put the readerpref.sh file with the following contents:

Code:
#!/bin/sh
sed -i "s/FONT_FAMILY=.*/FONT_FAMILY=alt/" /mnt/us/system/com.amazon.ebook.booklet.reader/reader.pref
sed -i "s/HORIZONTAL_MARGIN=.*/HORIZONTAL_MARGIN=15/" /mnt/us/system/com.amazon.ebook.booklet.reader/reader.pref
/etc/init.d/framework restart &
In a personal launchpad ini file I put the lines

Code:
;; edit reader.pref
R P = !/mnt/us/launchpad/readerpref.sh
After this you need to restart launchpad and all is OK. Do not forget: the readerpref.sh file has to have Unix EOLs or it will not work.

My only issue is that framework restart actually restarts the whole kindle, not only the framework, as it should.

Last edited by hfpop; 03-14-2012 at 06:54 PM.
hfpop is offline   Reply With Quote