How about this:

If uid = 0, SUDO_USER is set to a valid username, HOME is owned by
that user, and WINEPREFIX is not set, then refuse to start, printing a
message explaining the situation.


Perhaps the message can be something like

You're running Wine for the first time as root, but your home
directory belongs to a normal user. Continuing would break Wine for
that user.

You probably want to run Wine as a normal user. Wine does not need to
be root to install or run programs.


This will stop naive ubuntu users who think they need installers from
running Wine as root. Someone who has a legitimate need for root can
get around this by using a configuration that isn't broken.

Vincent Povirk


Reply via email to