* === added directory etc/profile.d, etc/byobu/Makefile.am,

etc/profile.d/Makefile.am, etc/profile.d/Z97-byobu.sh, Makefile.am:
  - LP: #586546
  - Enable any user to remotely opt into launching byobu by default,
    using an LC_BYOBU=1 environment variable, which is transmitted over
    SSH
This commit is contained in:
Dustin Kirkland 2011-11-08 16:07:19 -06:00
commit 134e8b38fe
5 changed files with 39 additions and 2 deletions

View file

@ -1,4 +1,5 @@
SUBDIRS = etc/byobu \
etc/profile.d \
usr/share/applications \
usr/share/byobu/ec2 \
usr/share/byobu/keybindings \

6
debian/changelog vendored
View file

@ -2,6 +2,12 @@ byobu (4.46) unreleased; urgency=low
* debian/control: LP: #887344
- promote tmux to a 'recommends'; will 'depend' on it soon
* === added directory etc/profile.d, etc/byobu/Makefile.am,
etc/profile.d/Makefile.am, etc/profile.d/Z97-byobu.sh, Makefile.am:
- LP: #586546
- Enable any user to remotely opt into launching byobu by default,
using an LC_BYOBU=1 environment variable, which is transmitted over
SSH
-- Dustin Kirkland <kirkland@ubuntu.com> Mon, 31 Oct 2011 09:46:46 -0400

View file

@ -1,2 +1,2 @@
etcdir = $(datadir)/@PACKAGE@/profiles
etc_DATA = socketdir
etcdir = $(datadir)/@PACKAGE@/
etc_DATA = backend socketdir

View file

@ -0,0 +1,2 @@
etcdir = $(datadir)/@PACKAGE@/profile.d
etc_DATA = Z97-byobu.sh

28
etc/profile.d/Z97-byobu.sh Executable file
View file

@ -0,0 +1,28 @@
#!/bin/sh
# Z97-byobu.sh - allow any user to opt into auto-launching byobu
# Copyright (C) 2011 Canonical Ltd.
#
# Authors: Dustin Kirkland <kirkland@ubuntu.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, version 3 of the License.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Allow any user to opt into auto-launching byobu by setting LC_BYOBU=1
# Apologies for borrowing the LC_BYOBU namespace, but:
# a) it's reasonable to assume that no one else is using LC_BYOBU
# b) LC_* is sent and receieved by most /etc/ssh/ssh*_config
if [ "$LC_BYOBU" = "1" ] && [ -r "/usr/bin/byobu-launch" ]; then
. /usr/bin/byobu-launch
fi
true
# vi: syntax=sh ts=4 noexpandtab