usr/bin/byobu-launcher: fix recent regression, do exec byobu by default,

but allow for not exec'ing if ~/.byobu/disable-exec exists, LP: #519018
This commit is contained in:
Dustin Kirkland 2010-02-08 23:29:35 -06:00
commit 0259f85e58
2 changed files with 9 additions and 2 deletions

2
debian/changelog vendored
View file

@ -1,6 +1,8 @@
byobu (2.56) unreleased; urgency=low
* debian/control: drop byobu-extras empty package
* usr/bin/byobu-launcher: fix recent regression, do exec byobu by default,
but allow for not exec'ing if ~/.byobu/disable-exec exists, LP: #519018
-- Dustin Kirkland <kirkland@ubuntu.com> Sat, 06 Feb 2010 22:10:52 -0600

View file

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