diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2013-02-15 05:26:16 +0100 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2013-02-15 05:26:16 +0100 |
commit | b08d5e7dad907493bc6946ab708640b567e2dffe (patch) | |
tree | 42008b931d9c9e900e3f8eeb9279a8a18758f61d /src/main.cpp | |
parent | f63cf74a89027988aed16e2069c1ca8486c749b5 (diff) | |
download | sciteco-b08d5e7dad907493bc6946ab708640b567e2dffe.tar.gz |
install standard macros into special standard library path (pkgdatadir/lib)
* SCITECOPATH environment variable defaults to this directory
* manpage updated
* default teco.ini updated: no need to generate it anymore
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index c1da584..2834709 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -168,7 +168,11 @@ process_options(int &argc, char **&argv) static inline void initialize_environment(void) { - gchar **environ = g_get_environ(); + gchar **environ; + + g_setenv("SCITECOPATH", DEFAULT_SCITECOPATH, FALSE); + + environ = g_get_environ(); for (gchar **p = environ; *p; p++) { gchar *value = strchr(*p, '=') + 1; |