command line + syncevo-dbus-server: avoid hard-coding env variables
@pohly
Submitted by Patrick Ohly Assigned to SyncEvolution Community
Description
---- Reported by patrick.ohly@intel.com 2010-04-15 02:36:13 +0000 ----
As part of http://bugzilla.moblin.org/show_bug.cgi?id=10477 we added transmitting certain well-known env variables from the command line client to the server, which uses them when running a sync. This is only a short-term solution (famous last words...).
Long term solution:
- introduce a registry of env variables
- store them in the current session instead of using setenv()
- remove all direct "getenv" calls, route them through some code which knows about the current session and retrieves variables from there before falling back to getenv()
This works for "http_proxy" because we check that variable ourselves and then override the transport settings.
--- Bug imported by patrick.ohly@gmx.de 2012-07-29 20:36 UTC ---
This bug was previously known as bug 838 at https://bugs.meego.com/show_bug.cgi?id=838