Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 84997

Summary: bzip2 path hardcoded in gnome theme manager 2.10
Product: Gentoo Linux Reporter: Matt Kynx <mattkyn>
Component: [OLD] GNOMEAssignee: Gentoo Linux Gnome Desktop Team <gnome>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: fix for hardcoded /usr/bin/bzip2 path
Proposed fix
Updated fix

Description Matt Kynx 2005-03-12 10:04:47 UTC
bzip2 is installed to /bin/bzip2, not /usr/bin/bzip2 as hardcoded into:
gnome-control-center/capplets/theme-switcher/gnome-theme-installer.c



Reproducible: Always
Steps to Reproduce:
1. Select Desktop > Preferences > Themes
2. Click on Install Theme
3. Browse for bz2 theme
4. Click Open and Install

Actual Results:  
Error message: "Cannot install theme. The bzip2 utility is not installed"

Expected Results:  
Theme is installed

Guess you could work around it with:
ln -s /bin/bzip2 /usr/bin/bzip2
Comment 1 Matt Kynx 2005-03-12 10:07:33 UTC
Created attachment 53272 [details, diff]
fix for hardcoded /usr/bin/bzip2 path

I've entered this as a bug on gnome at:
http://bugzilla.gnome.org/show_bug.cgi?id=170058
Comment 2 SpanKY gentoo-dev 2005-05-25 15:12:51 UTC
well, that 'fix' isnt any better

it should either check both places or check PATH
Comment 3 Daniel Gryniewicz (RETIRED) gentoo-dev 2005-05-25 21:26:37 UTC
I have a patch that replaces the hardcoding with g_find_program_in_path() that
I'm testing now.  I'll run it past foser and company and commit once it's
approved, and then submit upstream.
Comment 4 Daniel Gryniewicz (RETIRED) gentoo-dev 2005-05-26 08:47:17 UTC
Created attachment 59883 [details, diff]
Proposed fix

Proposed fix.  It replaces hard coded binaries (tar, gzip, and bzip2) with
calls to g_find_program_in_path()
Comment 5 Daniel Gryniewicz (RETIRED) gentoo-dev 2005-05-26 09:13:19 UTC
Created attachment 59885 [details, diff]
Updated fix

Here's an updated fix that removes all the conditionals around g_free(), as it
can correctly handle a NULL argument.
Comment 6 Daniel Gryniewicz (RETIRED) gentoo-dev 2005-05-26 10:26:14 UTC
Fixed in CVS, patch pushed upstream.