* screen: some users gripe about the default launched window being

called "motd+shell", LP: #369397


Signed-off-by: Dustin Kirkland <kirkland@canonical.com>
This commit is contained in:
Dustin Kirkland 2009-04-29 16:01:53 -05:00
commit 77871bf796
2 changed files with 6 additions and 4 deletions

7
debian/changelog vendored
View file

@ -1,8 +1,9 @@
screen-profiles (1.53) jaunty; urgency=low
screen-profiles (1.53) unreleased; urgency=low
* UNRELEASED
* screen: some users gripe about the default launched window being
called "motd+shell", LP: #369397
-- Dustin Kirkland <kirkland@ubuntu.com> Wed, 29 Apr 2009 02:33:57 -0500
-- Dustin Kirkland <kirkland@ubuntu.com> Wed, 29 Apr 2009 15:59:51 -0500
screen-profiles (1.52-0ubuntu1) karmic; urgency=low

3
screen
View file

@ -84,7 +84,8 @@ if [ "$#" = "0" ]; then
temp=$(mktemp screen-profiles-XXXXXXXX)
trap "rm -f $temp 2>/dev/null || true" EXIT HUP INT QUIT TERM
cat "$HOME/.screen-profiles/profile" "$HOME/.screen-profiles/windows" > "$temp"
exec /usr/bin/screen.real -c "$temp" /usr/bin/motd+shell
[ -n "$SHELL" -a -x "$SHELL" ] || SHELL="/bin/sh"
exec /usr/bin/screen.real -c "$temp" $SHELL /usr/bin/motd+shell
else
exec /usr/bin/screen.real -c "$HOME/.screen-profiles/profile" "$@"
fi