From: Brian P. <br...@tu...> - 2002-09-18 22:47:19
|
I've spent the afternoon prototyping something new. The faker library now does the following: 1. If the faker lib is able to contact the mothership, proceed normally. Otherwise... 2. Look if the CR_CONFIG env var is set. If so, it names a desired config file (ex: crdemo.conf) 3. Otherwise, find the name of the running process (ex: city) Look in ~/.crconfigs for a config for city (ex: crdemo.conf) 4. Spawn a mothership process (ex: exec("python crdemo.conf city")) 5. The crdemo.conf file can auto-start a crserver. 6. An atexit() handler kills the mothership when the app exits. So, I can run city with Chromium just by typing "city <return>". I have symlinks from libGL.so to libcrfaker.so. How does that sound for a first cut? -Brian |