can't run byobu from a source directory in home

Bug #385762 reported by Martin Pool
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
byobu
Fix Released
Medium
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:SCREEN_REAL="/usr/bin/screen"
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

Revision history for this message
Dustin Kirkland  (kirkland) wrote :

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

:-Dustin

Changed in byobu:
assignee: nobody → Dustin Kirkland (kirkland)
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
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.

:-Dustin

Changed in byobu:
status: Triaged → Fix Committed
Revision history for this message
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
500

summary: - hardcodes /usr/bin paths
+ can't run byobu from a source directory in home
Changed in byobu:
status: Fix Committed → Confirmed
Revision history for this message
Dustin Kirkland  (kirkland) wrote : Re: [Bug 385762] Re: can't run byobu from a source directory in home

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:
http://people.ubuntu.com/~kirkland/byobu-export.tar.gz

You can try that...

:-Dustin

Revision history for this message
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.

Revision history for this message
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:
 * https://launchpad.net/byobu

Thanks for the report. Cheers, Martin.

:-Dustin

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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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