View Single Post
Old 08-20-2012, 10:45 PM   #39
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,477
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
@twobob: That's essentially what most binary/proprietary apps/games distributed out of a PMS do. Use a wrapper script that tweaks the searchpaths to use their bundled libs over the system's.

You don't even strictly need to reset the env later if you're not doing anything else, since you're tweaking the env of *this* process and its potential children, and this process just returns at the end of the script.

(You can also just one-line it using the neat little 'env' tool from coreutils (busybox has an applet for it, too. No idea if it's enabled on the K3). env BLAH=blah BLUH=bluh /bin/blah)

Last edited by NiLuJe; 08-20-2012 at 10:49 PM.
NiLuJe is offline   Reply With Quote