Quote:
Originally Posted by Aeris
I'm also thinking if it would be appropriate to modify system files directly or not, to make persistent changes (embedding the javascript in the head at least)
|
As an easy way, it's OK. (If you don't mind probable problems with updating.)
However, it should possible to add new
Upstart job definition (into
/etc/init) for running that shell script right after (re)starting pillow. Something like
/etc/init/pillow_local_mod.conf (
not tested at all!!):
Code:
start on started pillow
task
script
# put here any shell code
end script
or
Code:
start on mounted_userstore and started pillow
task
exec /bin/sh /mnt/us/extensions/pillow_mod.sh
The last example is probably not very security-wise (given that script on userstore is accessible by anyone).
UPD: as you've participated in
thread about substituting of "shopping cart" icon, I'd like to inform you about search_bar (containing that icon) being a pillow sub-app. So icon and its tap action could be changed in runtime without modifying any files. Slightly
relevant example.