import carb
import omni.ext
import webbrowser


class Extension(omni.ext.IExt):
    def on_startup(self):
        import omni.kit.ui

        def provide_feedback_func(a, b):
            url = carb.settings.get_settings().get(f"/exts/omni.kit.window.provide_feedback/url")
            webbrowser.open(url)
       
        self._menuEntry = omni.kit.ui.get_editor_menu().add_item(f'Help/Provide Feedback', provide_feedback_func)
        omni.kit.ui.get_editor_menu().set_priority("Help/Provide Feedback", -11)
