But running the desalination when energy is cheap makes a lot of sense. Especially when not providing all the water but topping up when supply is low. The only problem is the capital costs of desalination plant that isn't used all the time.
The energy costs are tied to oil because thats the cheapest option. Well, besides coal. If solar were cheaper wed be using it.
The current record price for solar is slightly over one cent per kWh and still people will write that oil is the cheapest option.
The installation rate for solar is such a steep graph that drawing it legibly is a real problem, see https://nitter.net/pic/orig/media%2FFOoa6xYXIAQKUnv.jpg for example, and still people will write that "if solar […] we'd be using it".