* debian/postinst: make sure that byobu-launcher, if selected by default,

gets installed late in the /etc/profile.d list
* usr/bin/byobu-launcher: do not exec, as this precludes detaching from a
  session, and being in a non-byobu shell
This commit is contained in:
Dustin Kirkland 2010-02-06 14:13:41 -08:00
commit e4b2b4629a
3 changed files with 8 additions and 6 deletions

5
debian/changelog vendored
View file

@ -1,6 +1,9 @@
byobu (2.55) unreleased; urgency=low
* UNRELEASED
* debian/postinst: make sure that byobu-launcher, if selected by default,
gets installed late in the /etc/profile.d list
* usr/bin/byobu-launcher: do not exec, as this precludes detaching from a
session, and being in a non-byobu shell
-- Dustin Kirkland <kirkland@ubuntu.com> Fri, 05 Feb 2010 09:16:55 -0800

4
debian/postinst vendored
View file

@ -7,9 +7,9 @@ PKG="byobu"
db_get byobu/launch-by-default
if [ "$RET" = true ]; then
ln -sf /usr/bin/$PKG-launcher /etc/profile.d/$PKG.sh
ln -sf /usr/bin/$PKG-launcher /etc/profile.d/95-$PKG.sh
else
rm -f /etc/profile.d/$PKG.sh
rm -f /etc/profile.d/95-$PKG.sh
fi
# The target of the diversion somehow disappeared which will cause

View file

@ -17,6 +17,5 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
if [ ! -r "$HOME/.byobu/disable-autolaunch" ]; then
exec /usr/bin/byobu
fi
# Do not 'exec' here
[ ! -r "$HOME/.byobu/disable-autolaunch" ] && /usr/bin/byobu