emendelson Posted June 7, 2024 Posted June 7, 2024 I have some compiled scripts that cause problems if they run under wine on linux. I think I can work around the problems, but only if the script can detect that it is running under wine, and not real Windows. I've searched the forum without finding a technique for detecting wine. Am I missing something obvious? Thanks for any help.
Developers Jos Posted June 7, 2024 Developers Posted June 7, 2024 Can't you simply test the values of the windows version macros? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
emendelson Posted June 7, 2024 Author Posted June 7, 2024 I don't think so, because the user can set Wine to report itself as any Windows version, with the matching build number.
Solution Nine Posted June 7, 2024 Solution Posted June 7, 2024 Or set an environment variable that tell you if it is running under Wine ? “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Debug Messages Monitor UDF Screen Scraping Round Corner GUI UDF Multi-Threading Made Easy Interface Object based on Tag
emendelson Posted June 7, 2024 Author Posted June 7, 2024 (edited) 33 minutes ago, Nine said: Or set an environment variable that tell you if it is running under Wine ? That is almost certainly the answer. Apparently Wine sets some variables that I should be able to test. I should have thought of this myself. Thank you! EDIT: There are about a dozen relevant variables: WINELOADER, WINEUSERNAME, etc., etc., This should be easy. Thank you again. Edited June 7, 2024 by emendelson
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