SystemInformationMBS Username confusion

  1. 7 months ago

    Beatrix W

    22 May 2019 Pre-Release Testers, Third Party Store Europe (Germany)

    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?

  2. Christian S

    22 May 2019 Pre-Release Testers, Xojo Pro, XDC Speakers, Third Party Store Germany

    Sorry for the mess with your users.
    You may want to merge the users and fix the user database on your computer.
    Normally migration assistant creates them, so no need to do it yourself.

  3. Beatrix W

    22 May 2019 Pre-Release Testers, Third Party Store Europe (Germany)

    @Christian Schmitz: that sounds about as pleasant as a root canal. Besides, my app needs to run for screwed up users, too.

or Sign Up to reply!