Xpra: Ticket #1602: Wrong shell after --start-child=urxvt

I launch xpra with "--start-child=urxvt". As of the last major update, this starts a urxvt instance in which the shell is provided by "sh" instead of "bash". The expected behaviour is to launch "bash", and this actually happened until very recently. I don't know enough to guess why it changed.

Here urxvt is a popular terminal emulator, v9.21, released 2014-12-31.

My username in /etc/passwd does give /bin/bash as my default shell.

Both client and server are the same box, running Ubuntu 16.04.2 LTS with xpra version 2.1 revision r16525.

Some internet searches suggest that the environment variable $SHELL may be relevant. When urxvt opens with /bin/sh, that variable is undefined.

Thanks a lot for this fine software.

Thu, 27 Jul 2017 05:54:58 GMT - Antoine Martin: status, description changed

That's probably caused by #1105. Works fine here on Fedora.. maybe Ubuntu isn't populating the environment variables through the pam login.

Problem is that we can't blindly forward all the environment variables to the system-wide proxy process which runs as root, as that would be insecure. For example, $SHELL could be abused as it may be used by commands executed as root.

Fri, 04 Aug 2017 15:22:23 GMT - Antoine Martin: status, description changed; resolution set

Fixed in r16613, this will be included in the next stable update.

Thanks for the bug report!

Sat, 23 Jan 2021 05:28:50 GMT - migration script:

this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/1602