bzr-gtk install does not honour --home argument
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar GTK+ Frontends |
Triaged
|
Medium
|
Unassigned |
Bug Description
Running olive on Ubuntu Gutsy Gibbon worked OK (presumably because a version of bzr-gtk was installed by the package manager, but with Hardy Heron (where the bzr packages are not installed)I am getting the following error:
/data/users/
Traceback (most recent call last):
File "/data/
app = OliveGtk()
File
"/data/
line 91, in __init__
self.window = OliveGui(
File
"/data/
line 37, in __init__
self.set_
TypeError: pixbuf_
It looks like oliveicon2.png is not being found.
When I look in the bzr-gtk code of __init__.py (as installed) I see:
def data_basedirs():
return [os.path.
This is wrong as I installed from the source package with:
python setup.py install --home xxxxx
where xxx is not /usr/...
It looks like the install of bzr-gtk is not correctly using the --home argument.
Changed in bzr-gtk: | |
importance: | Undecided → Medium |
status: | New → Triaged |
In continuation on this bug:
I have installed latest bzr-gtk (0.99.1) in my home folder (Fedora 12 x86_64, python 2.6.2, bzrlib 2.2.2) with
python setup.py install --home=~
As an effect of non-default install location some of bzr-gtk dialogs are not working (merge, about) - they also can not find the icons.
The solution, as David I pointed, is to change the data_basedirs() function. I do not know how to make it really honour the --home installation option, but I can imagine that installing to home folder as I did is next common case after default install.
Attached is the patch to solve this icon issue when installing to home folder
BTW, about icons - since Olive is separate from the bzr-gtk now, it's icons can be removed from bzr-gtk.