diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-05-14 01:24:34 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-05-14 01:24:34 +0200 |
commit | 561bb52d904a4803f42c46f807a1bce7eab239eb (patch) | |
tree | b59cf9689dd01d36b0f249e1b18b2c935a499415 | |
parent | spawn terminal from test mdsinitrc (diff) | |
download | mds-561bb52d904a4803f42c46f807a1bce7eab239eb.tar.gz mds-561bb52d904a4803f42c46f807a1bce7eab239eb.tar.bz2 mds-561bb52d904a4803f42c46f807a1bce7eab239eb.tar.xz |
add fix export of variable
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r-- | src/mds.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -214,8 +214,8 @@ int main(int argc_, char** argv_) /* Save MDS_DISPLAY environment variable. */ xsnprintf(pathname, /* Excuse the reuse without renaming. */ - "%s=:%u", DISPLAY_ENV, display); - putenv(pathname); + ":%u", display); + setenv(DISPLAY_ENV, pathname, 1); /* Create display socket. */ xsnprintf(pathname, "%s/%u.socket", MDS_RUNTIME_ROOT_DIRECTORY, display); |