summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsabetts <sabetts>2003-05-17 10:11:05 +0000
committersabetts <sabetts>2003-05-17 10:11:05 +0000
commit768afe0f97f0d164502202169dc1761d2b6321a2 (patch)
tree2323736049ec86e935cb922dbf354d175afbbd19
parentcf843449115562fe44be792e37bd78639414da4e (diff)
downloadratpoison-768afe0f97f0d164502202169dc1761d2b6321a2.zip
(spawn): always put the DISPLAY string in the
environment.
-rw-r--r--ChangeLog5
-rw-r--r--src/actions.c5
2 files changed, 6 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index f51b968..a34ab64 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2003-05-17 Shawn Betts <sabetts@sfu.ca>
+
+ * src/actions.c (spawn): always put the DISPLAY string in the
+ environment.
+
2003-05-16 Shawn Betts <sabetts@sfu.ca>
* src/window.c (add_to_window_list): add the window to the current
diff --git a/src/actions.c b/src/actions.c
index e866953..31e8cda 100644
--- a/src/actions.c
+++ b/src/actions.c
@@ -1014,10 +1014,7 @@ spawn(char *cmd)
{
/* Some process setup to make sure the spawned process runs
in its own session. */
- /* Only put the display env if we don't have it already. If we
- don't do this it core dumps on FreeBSD. */
- if (!getenv("DISPLAY"))
- putenv(current_screen()->display_string);
+ putenv(current_screen()->display_string);
#ifdef HAVE_SETSID
setsid();
#endif