To detect stage 2, the windows check could also run on wine!
For wine the equivalent would be:
/home/fox2code/.wine/drive_c/users/fox2code/AppData/Roaming
Where you replace fox2code by the username of whoever.
This code should work correcly on Linux to detect the appdata folder of the main wine instance.
Paths.get(System.getProperty("user.home"), ".wine", "drive_c", "users", System.getProperty("user.name"), "AppData", "Roaming")
To detect stage 2, the windows check could also run on wine!
For wine the equivalent would be:
/home/fox2code/.wine/drive_c/users/fox2code/AppData/Roaming
Where you replace
fox2code
by the username of whoever.This code should work correcly on Linux to detect the appdata folder of the main wine instance.
Paths.get(System.getProperty("user.home"), ".wine", "drive_c", "users", System.getProperty("user.name"), "AppData", "Roaming")