I’ve currently made it work by changing modx core code, which obviously isn’t the right approach. But I’m wondering if this is a good sollution and if might be a good feature request for modx?
I’ve added the following code to the init of getfiles.class.php and it seems to work pretty good. Whenever there is a folder selected in the media browser I store it in a session which then is used when the media browser is reopend.
else $_SESSION["mediaBrowserDirectory"] = $this->getProperty("dir");