conformal / spectrwm

A small dynamic tiling window manager for X11.
ISC License
1.33k stars 97 forks source link

autostart broken in 2.7.0 (Linux) #101

Closed levaidaniel closed 9 years ago

levaidaniel commented 9 years ago

Hi!

autostart feature got broken in 2.7.0. I get as much spectrwm: spawn: execvp: : No such file or directory lines on the xsession error output as there are autorun entries in my .spectrwm.conf. Eg.:

autorun = ws[1]:/usr/bin/st

Running spectrwm in strace outputs (along with a lot of stuff, of course) these:

30729 execve("/bin/sh", ["sh", "-c", "which /usr/bin/st"], [/* 63 vars */]) = 0
30729 execve("/bin/which", ["which", "/usr/bin/st"], [/* 63 vars */]) = 0
30729 brk(0xcd9000)                     = 0xcd9000
30729 stat("/usr/bin/st", {st_mode=S_IFREG|0755, st_size=58776, ...}) = 0
30729 getgroups(64, [4, 7, 11, 17, 18, 19, 83, 84, 86, 93, 100, 1000]) = 12
30729 fstat(1, {st_mode=S_IFREG|0600, st_size=1644, ...}) = 0
30729 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fe9b8d01000
30729 write(1, "/usr/bin/st\n", 12)     = 12
30729 exit_group(0)                     = ?
30729 +++ exited with 0 +++

I tried without absolute paths but no luck.

Daniel

LordReg commented 9 years ago

Fixed on master.

levaidaniel commented 9 years ago

Indeed, thanks!