diff --git a/debian/changelog b/debian/changelog index bda6fb73..9dd4f641 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,6 +1,7 @@ byobu (5.27) unreleased; urgency=low - * UNRELEASED + * usr/bin/byobu-config: LP: #1097922, #1098102 + - ensure byobu-config works even if ~/.profile doesn't exist -- Dustin Kirkland Thu, 10 Jan 2013 16:36:23 -0600 diff --git a/usr/bin/byobu-config b/usr/bin/byobu-config index 3f30cb97..85eac2b6 100755 --- a/usr/bin/byobu-config +++ b/usr/bin/byobu-config @@ -327,9 +327,12 @@ def chgesc(snackScreen, size): def autolaunch(): if os.path.exists(BYOBU_CONFIG_DIR + "/disable-autolaunch"): return 0 - for line in open("%s/.profile" % HOME): - if "byobu-launch" in line: - return 1 + try: + for line in open("%s/.profile" % HOME): + if "byobu-launch" in line: + return 1 + except: + return 0 if os.path.exists("/etc/profile.d/Z98-%s.sh" % PKG): return 1 return 0