can't run byobu from a source directory in home

Bug #385762 reported by Martin Pool on 2009-06-11
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Dustin Kirkland 

Bug Description

I'd like to run byobu from a bzr checkout in my home directory on a machine where I don't have root. This is complicated by (perhaps amongst other things) byobu hardcoding /usr/bin paths. Couldn't it get at least some of them off $PATH?

% grep /usr/bin *
byobu:[ -h "$profile" ] || /usr/bin/select-screen-profile -s "$DEFAULT_PROFILE"
byobu: /usr/bin/select-screen-profile -s "$DEFAULT_PROFILE"
byobu: /usr/bin/select-screen-profile -s "$DEFAULT_PROFILE"

Related branches

Dustin Kirkland  (kirkland) wrote :

Sounds reasonable. Thanks for the report. I'll get this fixed


Changed in byobu:
assignee: nobody → Dustin Kirkland (kirkland)
importance: Undecided → Medium
status: New → Triaged
Dustin Kirkland  (kirkland) wrote :

Hi Martin,

I just committed revision 500 to lp:byobu. Since you're running from bzr anyway, would you mind pull that and testing the fix for me? If it works, I'll get a new release out shortly.


Changed in byobu:
status: Triaged → Fix Committed
Martin Pool (mbp) wrote :

I don't get that particular error, but it now fails like this:

mbp@bilbo% path+=~/work/byobu
mbp@bilbo% rm ~/.screenrc
mbp@bilbo% ./byobu

Your selected profile is not accessible.

Either select a different profile:
 $ select-screen-profile

Or install the extras package:
 $ sudo apt-get install byobu-extras

mbp@bilbo% ./select-screen-profile

Select a screen profile:
mbp@bilbo% bzr revno

summary: - hardcodes /usr/bin paths
+ can't run byobu from a source directory in home
Changed in byobu:
status: Fix Committed → Confirmed

Hmm, okay, the rabbit hole goes quite a bit deeper now...

There are auxiliary files and libraries that byobu expects in
/usr/lib/byobu and /usr/share/byobu. I suppose I'd need to support a
BYOBU_LIB and BYOBU_SHARE environment variables? What do you think?

That said, perhaps I can introduce you to the byobu-export command,
which is an excellent way of running byobu on a system where you don't
have root (or a system for which byobu isn't packaged).

If you have byobu installed somewhere, you can run the command, and it
will create a tarball that you can extract in your home directory and
then just run "screen".

As part of my release process, I keep an up-to-date tarball at:

You can try that...


Martin Pool (mbp) wrote :

byobu-export is just right! Maybe it could be mentioned in README or a new INSTALL file, along with that URL.

Dustin Kirkland  (kirkland) wrote :

On Thu, Jun 11, 2009 at 7:23 PM, Martin Pool<email address hidden> wrote:
> byobu-export is just right!  Maybe it could be mentioned in README or a
> new INSTALL file, along with that URL.

Done, Committed revision 505. Will be in the next release.

It is mentioned somewhat prominently at:

Thanks for the report. Cheers, Martin.


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

Other bug subscribers