Fix Google Earth 5.0 user interface font on Linux

I installed Google Earth 5.0 and the ugly UI font from the beta is still here.
Based on the comments from Google Earth Help page from here I’ve created the following script wich will fix the user interface font issue.

sudo aptitude -y install libqt4-webkit
ge=`which googleearth`
if [ -n "$ge" ]; then
    ## get the path and check if it is a symlink
    if [ -h "$ge" ]; then
        real_path=`readlink -e $ge`
        dir_path=`dirname $real_path`
        real_path=`dirname $ge`
    ## backup original Qt4 libraries
    for i in `ls $dir_path | grep libQt`; do
		sudo mv -v $dir_path/$i $dir_path/$i"_backup"
	## backup original Qt4 plugins
    for j in `ls $dir_path/plugins/imageformats | grep libq`; do
		sudo mv -v $dir_path/plugins/imageformats/$j $dir_path/plugins/imageformats/$j"_backup"
	## create a new qt.conf file
cat > $HOME/qt.conf << "EOF"
	sudo mv -v $dir_path/qt.conf $dir_path/qt.conf_backup
	sudo mv -v $HOME/qt.conf $dir_path
elif [ -z "$ge" ]; then
		echo -e "You don't have Google Earth installed!\n"
exit 0
  1. Thank you for the Script!
    Worked like a charm….

  2. do you just copy and paste the above in a terminal

    do use this at all #!/bin/bash sorry new to this


  3. #!/bin/bash at the beginning tells the system which program to use to run the file.
    You can skip this and enter each command at a time to your console.

Leave a Comment

NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

This site uses Akismet to reduce spam. Learn how your comment data is processed.

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.