#!/bin/sh
#
# install_GNOME - install treeps to/for GNOME
#
# Assume the CWD is in the desktop dir and userid is root.


if [ -d "/usr/share/gnome" ]
then
    GNOME_ROOT="/usr/share/gnome"
    GNOME_ICON_DIR="/usr/share/pixmaps"
fi


if [ ! -d "$GNOME_ROOT" ]
then
  echo ""
  echo "NOTE: Can't find GNOME dirs - checked in $GNOME_ROOT"
  echo "You can install on GNOME later by running "
  echo "./Setup -d from the treeps lib directory"
  exit 0
fi

out "Installing GNOME Files "

ICON_ROOT=icons

D=apps/Utilities

installFile -m 644 desktop/GNOME/$D/treeps.desktop    $GNOME_ROOT/$D/treeps.desktop

installFile -m 644 desktop/GNOME/icons/gnome-treeps.png    $GNOME_ICON_DIR/gnome-treeps.png

installFile -m 644 desktop/GNOME/icons/gnome-treeps-hiColor.png    $GNOME_ICON_DIR/gnome-treeps-hiColor.png

# Should install help docs to $GNOME_ROOT/help/C/...
