fixed pixmap loading path
This commit is contained in:
parent
7838c73428
commit
04b36d3751
11
gnome-bluetooth-0.7.0-path.patch
Normal file
11
gnome-bluetooth-0.7.0-path.patch
Normal 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
|
@ -18,6 +18,7 @@ Requires: %{name}-libs = %{version}-%{release}
|
|||||||
ExcludeArch: s390 s390x
|
ExcludeArch: s390 s390x
|
||||||
|
|
||||||
Patch1: gnome-bluetooth-0.7.0-pydir.patch
|
Patch1: gnome-bluetooth-0.7.0-pydir.patch
|
||||||
|
Patch2: gnome-bluetooth-0.7.0-path.patch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This package contains a Bonobo server to control Bluetooth devices,
|
This package contains a Bonobo server to control Bluetooth devices,
|
||||||
@ -49,11 +50,15 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
|
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch1 -p1 -b .pydir
|
%patch1 -p1 -b .pydir
|
||||||
|
%patch2 -p1 -b .path
|
||||||
|
|
||||||
aclocal
|
aclocal
|
||||||
automake -a
|
automake -a
|
||||||
autoconf
|
autoconf
|
||||||
|
|
||||||
|
perl -pi -e 's|^Icon=.*|Icon=%{_datadir}/pixmaps/blueradio-48.png|g' \
|
||||||
|
*/*.desktop.in
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure
|
%configure
|
||||||
|
Loading…
Reference in New Issue
Block a user