backend determination incomplete, not configurable

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

Bug Description

As of byobu 4.32 (I think it was introduced in 4.30), there is an "/etc/byobu/backend" config file to choose between screen and tmux. However, it does not seem to be read at all, neither is "$BYOBU_CONFIG/backend" (see the output of "bash -x /usr/bin/byobu" [1])

It looks like you prefer using symlinks to /usr/bin/byobu instead ("byobu-tmux" and "byobu-screen"), but:
1/ these don't get installed by "make install" (and sorry, I don't feel like investigate the autotools...)
2/ I like to be able to set the backend in a config file too, to be able to use "byobu" as usual.

The attached patch "byobu_fix-tmux.patch" fixes this second point. The backend can thus be set by the following methods, from more prioritized to less prioritized:
* using "byobu-tmux" or "byobu-screen" instead of just "byobu";
* setting the BYOBU_BACKEND environment before launching "byobu";
* setting BYOBU_BACKEND in "$BYOBU_CONFIG/backend";
* setting BYOBU_BACKEND in "/etc/byobu/backend";
* falling back to screen if none of the previous methods were applicable.

which means that if one of these methods is used, all methods below are not taken into account.

The second patch "byobu_doc.patch" is an update to various places of documentation ("/etc/byobu/backend", "/usr/share/byobu/status/status" and the "byobu.1" man page).
Note about doc I *haven't* updated: the "byobu.1" man page is fairly out-of-date, since it only is related to screen. Also, you might want to integrate the various methods available to set the backend, along with their precedence.

Thank you!

[1] http://pastebin.archlinux.fr/433760

Revision history for this message
zorun (zorun-42) wrote :
Revision history for this message
zorun (zorun-42) wrote :
Changed in byobu:
status: New → In Progress
importance: Undecided → Medium
assignee: nobody → Dustin Kirkland (kirkland)
Changed in byobu (Ubuntu):
importance: Undecided → Medium
assignee: nobody → Dustin Kirkland (kirkland)
status: New → In Progress
summary: - Ability to choose backend in a config file
+ backend determination broken, not configurable
summary: - backend determination broken, not configurable
+ backend determination incomplete, not configurable
Changed in byobu:
status: In Progress → Fix Committed
Changed in byobu (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

---------------
byobu (4.33-0ubuntu1) oneiric; urgency=low

  * usr/lib/byobu/updates_available:
    - localize variables
    - save a fork
    - fix detection of updates, which only worked when there were security
      updates
  * usr/lib/byobu/.shutil: LP: #844994
    - the wget --timeout=1 was not working as desired, without the --tries=1
      option too; so local boots of ubuntu ec2 images that don't have a
      working metadata service might take several minutes for byobu to start
      while that wget tries repeatedly to reach the metadata service;
      big thanks to Ben Howard for helping triage and fix ;-)
  * usr/lib/byobu/apport: LP: #842113
    - fix broken detection of apport bug reports, thanks to lp:~masterpatricko
      for the suggested fix
  * etc/byobu/backend, usr/bin/byobu, usr/lib/byobu/.common,
    usr/lib/byobu/.dirs, usr/share/byobu/status/status,
    usr/share/man/man1/byobu.1: LP: #836090
    - fix handling of byobu backend (screen|tmux) handling; thanks to
      lp:~zorun-42 for the fix
  * usr/lib/byobu/swap: LP: #843446
    - make swap status behave like disk and memory (display usage even if
      zero)
 -- Dustin Kirkland <email address hidden> Fri, 26 Aug 2011 19:07:32 -0500

Changed in byobu (Ubuntu Oneiric):
status: Fix Committed → Fix Released
Changed in byobu:
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.