#!/bin/sh
#
# getProcessAttachPolicy - Determine how processes are connected into tree
#
# By default the policy is to connect parent to child and if the parent is
# listed as 1 then also check for process group/session id's. On some systems
# The session id's are not set in such a way as to facilitate the construction
# of the proper process hierarchy. A smart attachment option is available
# in those cases. With smart attach a set of hueristics are used to determine
# the attachment points. This script looks for things on the system that
# would indicate that smart attachment is needed. For example versions of
# Gnome that are greater than 1.2 benefit from using smart attachment.
# If it found to be desirable on the system the system is built with
# The appropriate menu option enabled and the smart attach defined as
# the default attachment policy. The end user can override this via
# a resource setting if desired. In other words the program tries to
# do the smart thing but may not succeed so lets the user override it.


# CMD=`cmdLocation gnome-config`

# if [ -z "$CMD" ]
# then
	# echo GROUP_ATTACH
# else
	# echo SMART_ATTACH
# fi

# Gnome, KDE and CDE all benefit from this so we default to smart attach.

echo SMART_ATTACH


