Ettercap/ettercap — pull request #174 by LocutusOfBorg (2013-04-12 15:25:02+00:00)
Title: Fix for remote browser plugin

I finally fixed the xdg-open script.

Now we have a problem, if the user runs chrome as default browser it WON'T start as root.
In order to fix this I simply change the UID before launching the browser.

I change UID to 1000, that should be the first user on the system, I don't know if this is the best number or we can find another more elegant solution.

Of course this is a good pratice to don't run a browser as root, because of security problems.

Let me know, waiting for feedbacks

thanks to Antonio Collarino, for taking time to test my patch and reporting bugs to me