Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
edwon's avatar
edwon
Protege
10 years ago

Disable Health and Safety Warning Mac OSX

Ok, I am so sick of searching around for how to disable the health and safety warning on Mac OSX. I know your supposed to modify an environment variable and then that exposes the option in the oculus config util. But I have no idea how to set an environment variable in OSX. Someone please post a step by step on how to do this once and for all! Thanks.

6 Replies

  • Ok I FINALLY figured this out. It's actually quite simple, but if you copy and paste this is into terminal it will replace underscores with spaces, messing it up.

    On Mac

    1. open Terminal
    2. type in this command exactly as written (make sure underscores are there) and hit enter (this sets an environment variable which brings up the "disable health and safety warning" option in OculusConfigUtil)

    launchctl setenv Oculus_LibOVR_HSWToggleEnabled 1

    3. to make sure it worked type in this exactly as written and hit enter

    launchctl getenv Oculus_LibOVR_HSWToggleEnabled

    4. it should return as 1, if it doesn't you didn't type it in correctly, remember the underscores which are erased when copy pasting!

    5. Open OculusConfigUtil

    6. Press the "Advanced" button

    7. Check the "Disable Health and Safety Warning" option

    8. You are now free of the most annoying warning ever made!
  • I don't have the DK2, just the Gear VR mobile SDK. When I launch the Rift Config Util, I can't press the Advanced button because there's no device connected. Is there any way to turn off the health and safety warning within Unity previews?

    I'm using 0.4.3.1 mobile sdk, Unity 4.6.4f1