]> code.delx.au - spectrwm/commitdiff
Add note to man page regarding autorun and LD_PRELOAD.
authorReginald Kennedy <rk@rejii.com>
Mon, 6 Oct 2014 02:56:43 +0000 (10:56 +0800)
committerReginald Kennedy <rk@rejii.com>
Mon, 6 Oct 2014 02:57:28 +0000 (10:57 +0800)
closes #72

spectrwm.1

index f719acd37ffd1ef69839ba9b0589216dda512816..1e86e006aef0ab47ee140b3676a9b534336f825f 100644 (file)
@@ -99,6 +99,27 @@ Defined in the format
 e.g. ws[2]:xterm launches an
 .Xr xterm 1
 in workspace 2.
 e.g. ws[2]:xterm launches an
 .Xr xterm 1
 in workspace 2.
+.Pp
+Note that workspace mapping is handled via
+.Pa libswmhack.so .
+When
+.Ic autorun
+spawns windows via a daemon, ensure the daemon is started
+with the correct
+.Pa LD_PRELOAD
+in its environment.
+.Pp
+For example, starting
+.Xr urxvtd 1
+via
+.Xr xinit 1 :
+.Bd -literal -offset indent
+LD_PRELOAD=/usr/lib/libswmhack.so.0.0 urxvtd -q -o -f
+.Ed
+.Pp
+Spawned programs automatically have
+.Pa LD_PRELOAD
+set when executed.
 .It Ic bar_action
 External script that populates additional information in the status bar,
 such as battery life.
 .It Ic bar_action
 External script that populates additional information in the status bar,
 such as battery life.