usr/bin/byobu-config: fix logic auto-launch detection logic, LP: #528545

This commit is contained in:
Dustin Kirkland 2010-02-26 10:40:21 -06:00
commit 4323459058
2 changed files with 2 additions and 2 deletions

2
debian/changelog vendored
View file

@ -1,6 +1,6 @@
byobu (2.59) unreleased; urgency=low
* UNRELEASED
* usr/bin/byobu-config: fix logic auto-launch detection logic, LP: #528545
-- Dustin Kirkland <kirkland@ubuntu.com> Tue, 16 Feb 2010 23:16:33 -0600

View file

@ -495,7 +495,7 @@ def chgesc(screen, size):
def autolaunch():
if os.path.exists("%s/.%s/disable-autolaunch" % (HOME, PKG)):
return 0
if commands.getstatusoutput('grep -qs byobu-launcher %s/.profile' % HOME):
if commands.getstatusoutput('grep -qs byobu-launcher %s/.profile' % HOME)[0] == 0:
return 1
if os.path.exists("/etc/profile.d/Z98-%s.sh" % PKG):
return 1