View Single Post
rebhana's Avatar
Posts: 579 | Thanked: 471 times | Joined on Jan 2010 @ Austria
#773
Originally Posted by qole View Post
I tried adding the "-" to the chroot command, but that breaks other things. For instance, OpenOffice gives an error, "Failed to open display". Any ideas how to get this working for everyone?
Strange! I have no such problem with openoffice!

My /usr/bin/debbie script now has
Code:
if [ $# = 0 ] ; then
  echo Starting Debian shell... >/dev/stderr
  sudo /sbin/debian su - $DEBUSER
else
  # Workaround to allow "debbie" to be used as login shell
  if [ "$1" == "-c" ]; then
    shift
  fi
  echo Starting Debian $* >/dev/stderr
  sudo /sbin/debian su - $DEBUSER -c "$*"
fi
and I can open openoffice both within LXDE and through debbie.