#!/bin/sh

cp $HOME/.Xauthority /home/firefox
chmod g+r /home/firefox/.Xauthority
export HOME=/home/firefox
export PATH=/opt/firefox/bin:$PATH
export LD_LIBRARY_PATH=/opt/firefox/lib
sudo -u firefox DISPLAY=:0.0 XAUTHORITY=/home/firefox/.Xauthority /opt/firefox/bin/firefox $@ &> $HOME/.firefoxlog &
sleep 1;
yes y | rm /home/firefox/.Xauthority # jer rm pita da li da se brise fajl
