#!/bin/bash
#function set-title() {
#  if [[ -z "$ORIG" ]]; then
#    ORIG=$PS1
#  fi
#  TITLE="\[\e]2;$*\a\]"
#  PS1=${ORIG}${TITLE}
#}
#set-title "chrome terminal"


#gnome-terminal -x sh -c "export XDG_RUNTIME_DIR=/run/user/$UID; su - $1 -c chrome"
PASSWD="$(zenity --password --title=Chrome as User)\n"

echo -e "$PASSWD" | sudo -u $1 -S chrome
