• Sonotsugipaa@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    1
    arrow-down
    1
    ·
    12 hours ago

    It’s not that Wine runs things as an administrator, Wine emulates the Windows virtual filesystem by creating and using a directory in your home (by default), which means you own the entire thing;

    with Windows, if you have a separate drive and *you* create a folder in it, even if you call it “Program Files”, it’s going to let you access it freely because it’s yours.
    However, the existing Program Files folder in your OS drive (C: by default, idk if you can change its volume letter) is owned by… I have no idea, actually, but it’s a system account, not yours.

    The last paragraph may be inaccurate, I was much less tech literate when I was still daily-driving Windows.

    • WhyJiffie@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      1
      ·
      edit-2
      10 hours ago

      It’s not that Wine runs things as an administrator

      yes, it is that

      Wine emulates the Windows virtual filesystem by creating and using a directory in your home (by default), which means you own the entire thing;

      I was always installing fitgirl games to my other drive, where I owned the entire thing. I know because I remember I set the ownership.

      However, the existing Program Files folder in your OS drive (C: by default, idk if you can change its volume letter) is owned by… I have no idea, actually, but it’s a system account, not yours.

      The last paragraph may be inaccurate, I was much less

      I have never installed fitgirl games there.

        • katze@lemmy.4d2.org
          link
          fedilink
          English
          arrow-up
          1
          ·
          1 hour ago

          You are misunderstanding him. Wine has not implemented any UAC dialogue like windows; when the application requests it, it just gets “elevated” as if the user had pressed that UAC button under windows; but Wine does this automatically, as there is no need for something like that.

          As stated in comment 50, applications requiring unelevated privileges can be run directly, without the need for “runas” or any similar manual intervention.

          https://bugs.winehq.org/show_bug.cgi?id=40613#c50