I've managed to do it

Never set an environment variable before, so it was not easy for a n00b like me. Btw, it's possible to have the dark mode on Calibre as an option in the normal settings window in aspect? It would be more configurable case by case instead to delete/create the variable every time.