Compounds having the formula
and pharmaceutically acceptable salts thereof wherein R¹ to R⁴ and n are as defined herein and X is O, S or NCN. These compounds have potassium channel opening activity and are useful, therefore for example, as cardiovascular agents.