fixed pixmap loading path

This commit is contained in:
Harald Hoyer 2006-02-16 18:07:53 +00:00
parent 7838c73428
commit 04b36d3751
2 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,11 @@
--- gnome-bluetooth-0.7.0/python/manager.py.path 2006-02-16 18:48:02.000000000 +0100
+++ gnome-bluetooth-0.7.0/python/manager.py 2006-02-16 18:48:25.000000000 +0100
@@ -265,7 +265,7 @@
dialog.show ()
def image_file (self, fname):
- for d in [os.path.join (__datadir__, "pixmaps"), "../pixmaps"]:
+ for d in [os.path.join (__datadir__, "pixmaps"), "../pixmaps", "/usr/share/pixmaps"]:
if os.path.isfile (os.path.join (d, fname)):
return os.path.join (d, fname)
return None

View File

@ -18,6 +18,7 @@ Requires: %{name}-libs = %{version}-%{release}
ExcludeArch: s390 s390x
Patch1: gnome-bluetooth-0.7.0-pydir.patch
Patch2: gnome-bluetooth-0.7.0-path.patch
%description
This package contains a Bonobo server to control Bluetooth devices,
@ -49,11 +50,15 @@ rm -rf $RPM_BUILD_ROOT
%setup -q
%patch1 -p1 -b .pydir
%patch2 -p1 -b .path
aclocal
automake -a
autoconf
perl -pi -e 's|^Icon=.*|Icon=%{_datadir}/pixmaps/blueradio-48.png|g' \
*/*.desktop.in
%build
%configure