tittoproject Posted November 19, 2008 Posted November 19, 2008 I've already searched but I didn't find anything.
LarryDalooza Posted November 19, 2008 Posted November 19, 2008 If you type "set" at a CMD prompt is there anything about the environment variables returned that clues you to a WINE environment? Lar. AutoIt has helped make me wealthy
PsaltyDS Posted November 19, 2008 Posted November 19, 2008 I've already searched but I didn't find anything.What do you get for @OSBuild, @OSType, and @OSVersion?I've run AutoIt under WINE before (on SUSE 10), but don't have that set up any more, so I can't test. Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
tittoproject Posted November 19, 2008 Author Posted November 19, 2008 @Larry: if I look at the output of the command 'set', there's a lot of stuff that could let me think I'm running under Wine. For instance, I could check the env. variable %LOGNAME%, which is a typical Unix command, but is this method reliable? This is the output: expandcollapse popupintrepid@ubuntu:~$ wine cmd CMD Version 1.0.1 H:\>set _=/usr/bin/wine ALLUSERSPROFILE=C:\windows\profiles\All Users APPDATA=C:\windows\profiles\intrepid\Application Data COLORTERM=gnome-terminal ComSpec=C:\windows\system32\cmd.exe DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-q3AOaxIhm9,guid=e6ac75c553b701b0acdbfacc492475a3 DESKTOP_SESSION=default DISPLAY=:0.0 GDM_LANG=en_IE.UTF-8 GDM_XSERVER_LOCATION=local GDMSESSION=default GNOME_DESKTOP_SESSION_ID=this-is-deprecated GNOME_KEYRING_PID=5573 GNOME_KEYRING_SOCKET=/tmp/keyring-svJ4P5/socket GTK_RC_FILES=/etc/gtk/gtkrc:/home/intrepid/.gtkrc-1.2-gnome2 HISTCONTROL=ignoreboth LANG=en_IE.UTF-8 LESSCLOSE=/usr/bin/lesspipe %s %s LESSOPEN=| /usr/bin/lesspipe %s LOCALAPPDATA=C:\windows\profiles\intrepid\Local Settings\Application Data LOGNAME=intrepid LS_COLORS=no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.svgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36: NUMBER_OF_PROCESSORS=1 ORBIT_SOCKETDIR=/tmp/orbit-intrepid OS=Windows_NT PATH=C:\windows\system32;C:\windows PROCESSOR_ARCHITECTURE=x86 PROCESSOR_IDENTIFIER=x86 Family 6 Model 13 Stepping 6, GenuineIntel PROCESSOR_LEVEL=6 PROCESSOR_REVISION=0d06 ProgramFiles=C:\Program Files PWD=/home/intrepid SESSION_MANAGER=local/ubuntu:/tmp/.ICE-unix/5423 SHELL=/bin/bash SHLVL=1 SSH_AGENT_PID=5546 SSH_AUTH_SOCK=/tmp/keyring-svJ4P5/ssh SystemDrive=c: SYSTEMROOT=C:\windows TEMP=C:\windows\temp TERM=xterm TMP=C:\windows\temp USER=intrepid USERNAME=intrepid USERPROFILE=C:\windows\profiles\intrepid windir=C:\windows WINDOWID=50331709 WINDOWPATH=7 winsysdir=C:\windows\system32 XAUTHORITY=/home/intrepid/.Xauthority XDG_DATA_DIRS=/usr/local/share/:/usr/share/:/usr/share/gdm/ XDG_SESSION_COOKIE=eab1e1a85c592c0dfebe64094919d419-1227126177.706937-909656361 Another way could be check the reg key HKLM\software\wine, but again, is this reliable? @PsaltyDS: 2600, WIN32_NT, WIN_XP
zorphnog Posted November 19, 2008 Posted November 19, 2008 (edited) Seems like the %_% variable would be best, but I understand you're desire for a fool proof method. Have you tried the WINE forums? edit: Actually perhaps %_% isn't the best since WINE could be installed in other locations... Edited November 19, 2008 by zorphnog
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now