When I got my current computer I created as first user “beatrixwillius” as usual. I had the idea to use the migration assistant which wanted me to a second user “beatrix_willius”. This shows up in Finder as “beatrixwillius 1”.
For loading a LaunchAgent the SystemInformationMBS.ShortUsername works fine. For whatever reason unloading the same LaunchAgent wants “beatrixwillius 1” instead of “beatrix_willius”. Both UserName and ShortUsername are “beatrix_willius”. How do I get the other name? Or do I just use
dim f as FolderItem = SpecialFolder.UserHome
and then the DisplayName?