pip install launcherctl
import launcherctl
if (
launcherctl.launchers.current.name != "oxide"
and "oxide" in launcherctl.launchers
):
launcherctl.launchers.switch("oxide", start=True)
# or
launcherctl.launchers["oxide"].enable(start=True)
if (
"calculator" in launcherctl.apps
and "calculator" not in launcherctl.apps.running.keys()
):
launcherctl.apps["calculator"].start()