#!/bin/sh
#
# Copyright 2006-2009 by Purdue Research Foundation, West Lafayette, IN 47906.
# All rights reserved.
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License, version 2.1 as published by the Free Software Foundation.

[[ -d .icewm ]] || {
  mkdir .icewm
}
[[ -e .icewm/keys ]] || {
  ln -s /usr/share/hubzero/icewm/config/default/keys .icewm/keys
}
[[ -e .icewm/preferences ]] || {
  ln -s /usr/share/hubzero/icewm/config/default/preferences .icewm/preferences
}
[[ -e .icewm/theme ]] || {
  ln -s /usr/share/hubzero/icewm/config/default/theme .icewm/theme
}

[[ -e /usr/bin/icewm-session ]] && exec /usr/bin/icewm-session

# If no window manager just sleep "forever."

exec sleep 1000000000

