#!/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" if [ -z "$1" ] then USER=$(zenity --entry --text="Enter user name for opening firefox") else USER=$1 fi ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -l $USER localhost /usr/bin/firefox