SexScripts : OS detection call? - https://ss.deviatenow.com:443/viewtopic.php?f=4&t=953 | Page 1 of 1 |
OS detection call? |
ispank [ Sat Mar 21, 2020 4:52 pm ] |
---|---|
Is there a best practice to determine what OS the user of a script is running? I see there is this: if (SystemUtils.IS_OS_WINDOWS){ //do windows only stuff } if (SystemUtils.IS_OS_LINUX){ //do android only stuff } Has anyone used this in their scripts? |
Re: OS detection call? |
doti [ Fri Mar 27, 2020 4:23 pm ] |
---|---|
We have this to test Android vs Desktop : Code: if(System.getProperty("java.vm.name").contains("Dalvik")) I never tried SystemUtils.IS_OS_WINDOWS |
Page 1 of 1 | All times are UTC + 1 hour [ DST ] |