xearth doesn't do anything

Toby Kelsey toby_kelsey at ntlworld.com
Thu Feb 9 22:55:14 UTC 2006


I faced a similar problem with xantfarm (see
http://ubuntuforums.org/archive/index.php/t-61140.html).

My script solution follows:
=== snip ===
#! /bin/bash
#
# script to start/stop xantfarm and pass root window control to/from nautilus
#
case $1 in
  on|start)
    gconftool-2 --set /apps/nautilus/preferences/show_desktop -t bool "false"
    /usr/local/bin/xantfarm -ant darkgreen -sand brown -num 40 -c 50 ~/.xantfarm-save &
    ;;
  off|stop)
    killall xantfarm
    gconftool-2 --set /apps/nautilus/preferences/show_desktop -t bool "true"
    # restart nautilus if necessary
    x="`ps -u $USER`"
    echo "$x" | grep -q nautilus || { echo Starting nautilus; nautilus --no-default-window & }
    ;;
  *)
    echo ; echo "  Usage: $0 start/on|stop/off" ; echo
    ;;
esac
=== snip ===

Hope this helps,
Toby




More information about the ubuntu-users mailing list