Forum

    • Register
    • Login
    • Search
    • Categories

    Downloading / Permissions

    General Questions
    2
    5
    81
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • DanH
      DanH last edited by

      1. I've created a download app to download and install my samples. On OSX if I try and download to a folder which doesn't have the correct permissions (i.e Read only) is there any way to get a permissions dialogue to show up so the user can grant permission? Otherwise the app just sits on 0% progress.

      2. On Windows, what's the best way of re-creating the issue above? i.e Create a folder, give it read only permissions

      1 Reply Last reply Reply Quote 0
      • d.healey
        d.healey last edited by d.healey

        1. If the folder is read only then I don't think a permission dialog will help, unless the sudo user has write access, in which case I think you need to run the app as sudo.

        2. I think you can change the folder permissions on Windows by right-clicking the folder and selecting the option that shows the folder's properties window (can't remember what it's called).

        There is a File.hasWriteAccess() function you might find useful.

        Also you probably want to enable this if you haven't already.

        d546c338-1ad6-4ff6-b305-b69c9925845f-image.png

        Libre Wave - Freedom respecting instruments and effects
        My Patreon - HISE tutorials
        YouTube Channel - Public HISE tutorials

        DanH 1 Reply Last reply Reply Quote 2
        • DanH
          DanH @d.healey last edited by

          @d-healey aha, yes this looks perfect thanks!

          DanH 1 Reply Last reply Reply Quote 0
          • DanH
            DanH @DanH last edited by

            @DanH hmmmm... Using File.hasWriteAccess() works great in OSX but not so on Windows.

            I enabled Admin Permissions too but that hasn't made any difference.

            The code goes through the File.hasWriteAccess() check as it obviously looks ok to Hise, and then the download sits at 0%.

            In the folder I'm trying to download to I simply went to properties, Security and then removed Write permissions for Authenticated Users.

            Is File.hasWriteAccess() meant to work in Windows @Christoph-Hart

            DanH 1 Reply Last reply Reply Quote 0
            • DanH
              DanH @DanH last edited by

              @DanH small update - when in the browse window browsing for the location to save into, double clicking on the folder brings up the windows permissions dialogue. Clicking on it once and then clicking ‘ok’ doesn’t.

              1 Reply Last reply Reply Quote 0
              • First post
                Last post

              7
              Online

              983
              Users

              6.6k
              Topics

              60.8k
              Posts