Re: [dev] ST 'loginShell'

2022-03-03 Thread Greg Reagle
Both bash and fish have a dash ell -l option or --login.  I don't know about 
OpenBSD ksh, read the man page.



Re: [dev] ST 'loginShell'

2022-03-03 Thread Sime Ramov
Hi,

"Greg Reagle"  wrote:
> Both bash and fish have a dash ell -l option or --login.  I don't know
> about OpenBSD ksh, read the man page.

Yeah, OpenBSD ksh too, that's not an issue, but how to get ST to
spawn a login shell, e.g. from Xterm manpage:

loginShell (class LoginShell)
Specifies whether or not the shell to be run in the window should
be started as a login shell. The default is "false".

I didn't manage to get this going via `config.h`:

/*
 * What program is execed by st depends of these precedence rules:
 * 1: program passed with -e
 * 2: scroll and/or utmp
 * 3: SHELL environment variable
 * 4: value of shell in /etc/passwd
 * 5: value of shell in config.h
 */

Tried options 1, 3 and 5, but even if some of them work, they are
low in precedence list... Any ideas?