View Single Post
Old 10-22-2013, 07:17 AM  
eureka
but forgot what it's like
eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.
 
Posts: 741
Karma: 2345678
Join Date: Dec 2011
Location: north (by northwest)
Device: Kindle Touch
Quote:
Originally Posted by Aeris View Post
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.

Last edited by eureka; 10-22-2013 at 07:44 AM.
eureka is offline   Reply With Quote