?

Log in

No account? Create an account

Previous Entry | Next Entry

Firefox 3 Beta 2 with GTK+ Themes on amd64

So, I had already been lovin' me some Firefox 3 Beta 2 goodness since it was released. On various blogs around the intarwebs, rumblings could be heard about the new-found level of GTK+ integration in the Gecko renderer. I wasn't seeing it because I run a multiarch amd64 Debian install and FF3B2 builds are distributed in ia32.

Here are the steps needed to get GTK+ playing nice with Gecko:

  1. In Debian unstable, ia32-libs-gtk has GTK+ 2.10 while the amd64 version is at 2.12. The newer Clearlooks engine gtkrc file is incompatible with 2.10. So, you need to copy the newer gtkrc and modify it:
    cp /usr/share/themes/Clearlooks/gtk-2.0/gtkrc /usr/local/lib/firefox32/
    Then edit the file and remove these offending lines:
    ...
    colorize_scrollbar = TRUE
    ...
    toolbarstyle      = 1      # 0 = flat, 1 = enable effects
    animation         = FALSE
    ...
  2. Next, edit your firefox startup script in /usr/local/bin/firefox:
    ...
    ## The script will setup all the environment voodoo needed to make
    ## the mozilla-bin binary to work.
    ##
    
    #uncomment for debugging
    #set -x
    
    moz_libdir=/usr/local/lib/firefox-3.0b2
    
    ## ADD THESE LINES
    GTK_PATH="/usr/lib32/gtk-2.0"
    export GTK_PATH
    GTK2_RC_FILES=/usr/local/lib/firefox32/gtkrc
    export GTK2_RC_FILES
    ## END ADDITIONS
    
    # Use run-mozilla.sh in the current dir if it exists
    # If not, then start resolving symlinks until we find run-mozilla.sh
    ...

Comments

( 1 comment — Leave a comment )
(Anonymous)
Jan. 16th, 2008 08:49 pm (UTC)
/etc/gtk-2.0/gtkrc.32
At least in Debian,

cp /usr/share/themes/Clearlooks/gtk-2.0/gtkrc /usr/local/lib/firefox32/
GTK2_RC_FILES=/usr/local/lib/firefox32/gtkrc



Can be substituted by:
cp /usr/share/themes/Clearlooks/gtk-2.0/gtkrc /etc/gtk-2.0/gtkrc.32
Also with your proposed modifications. And is no longer GTK2_RC_FILES needed for any gtk32 application.

(by plue.uni.cc)
( 1 comment — Leave a comment )

Profile

color, uphair, smile
jasondclinton
Jason D. Clinton

Latest Month

September 2011
S M T W T F S
    123
45678910
11121314151617
18192021222324
252627282930 

Tags

Page Summary

Powered by LiveJournal.com
Designed by Tiffany Chow