Detecting Wine

Mark Wagner carnildo at gmail.com
Mon Sep 29 15:39:11 CDT 2008


What's the best way for an application to detect that it's running under Wine?

As part of the installation process, under Windows our program does a
full-disk search of all local hard drives, but ignoring network drives
and removable media.  Under Wine, this doesn't work too well, as
there's not a one-to-one mapping between disks and drive letters, and
there's usually at least one way to access the entire *nix filesystem.
 If someone's got a few network drives mounted, the installer could
spend hours searching them.

-- 
Mark Wagner



More information about the wine-devel mailing list