byobu doesn't source .screenrc when given command line arguments

Bug #580760 reported by Brian Parma
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
byobu (Ubuntu)
Fix Released
Medium
Dustin Kirkland 

Bug Description

Binary package hint: byobu

I noticed after upgrading to 10.04 that the default behavior for 'byobu' with no command line arguments is to try and attach to an already existing session instead of creating a new session. I personally think it should remain the other way around, mostly because there are a couple options (-r -R -x ) to reconnect to an existing screen session, but the only way to force creation of a new session is to create a named session with -S <name> (there's no simple -n for new session).

Anyway, this new behavior lead to me notice that .screenrc was being sourced when byobu is launched with no command line arguments, but is ignored when command line arguments (like -S name) are passed.

Looking at the byobu script at /usr/bin/byobu, it seems if no arguments are given, a new session is created with the config file /usr/share/byobu/profiles/byoburc, which in turns sources ~/.byobu/profile and ~/.screenrc

If any command line arguments are given, screen is called with the config file ~/.byobu/profile, which doesn't source ~/.screenrc

I don't know if there's a reason that these are different, but two workarounds I can think of is to use /usr/share/byobu/profiles/byoburc if there are command line arguments as well as not, or to have ~/.byobu/profile source ~/.screenrc instead of /usr/share/byobu/profiles/byoburc

I don't know enough about byobu to know which (if either) would be acceptable.

To reproduce:
byobu -S test

4) what i expect to happen:
start a new screen/byobu session that sources ~/.screenrc

5) what happens:
starts a new screen/byobu session that ignores ~/.screenrc

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: byobu 2.68-0ubuntu1
Uname: Linux 2.6.32-020632-generic x86_64
NonfreeKernelModules: nvidia
Architecture: amd64
Date: Fri May 14 16:19:33 2010
EcryptfsInUse: Yes
PackageArchitecture: all
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.utf8
 SHELL=/bin/bash
SourcePackage: byobu

Revision history for this message
Brian Parma (bj0) wrote :
Changed in byobu (Ubuntu):
status: New → In Progress
importance: Undecided → Medium
assignee: nobody → Dustin Kirkland (kirkland)
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package byobu - 2.75-0ubuntu1

---------------
byobu (2.75-0ubuntu1) maverick; urgency=low

  * usr/bin/byobu: ensure that .screenrc gets sourced if byobu is run
    with arguments, LP: #580760
  * ec2_cost, ip_address, network, rcs_cost: fix bug when calling ifconfig
    without setting lang to english, LP: #578792
  * byobu-launcher-uninstall: create the directory, in case this script is
    executed before byobu actually runs, LP: #580384
  * usr/bin/byobu-launcher: allow user to add custom screen arguments to
    byobu-launcher (useful in .profile for adding an option like -UDR),
    LP: #578373
 -- Dustin Kirkland <email address hidden> Sat, 15 May 2010 15:32:30 -0400

Changed in byobu (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.