[master 1/1] Set the GUI-selected environment in the ksdata (#1192100)