Git Product home page Git Product logo

Comments (22)

timsutton avatar timsutton commented on September 28, 2024 5

I've found in some cases that I seem to need to set the "Save password" option for free items in the App Store system preferences in order for mas install to work for free items. I'm not sure whether this is related to your issue but thought it's worth mentioning.

from mas.

argon avatar argon commented on September 28, 2024 1

I'm working on this at the moment. It's possible to automate the change but unfortunately the only way so far to change the password setting is by allowing the OS dialog for entering the password. It cannot be totally automatic. I am continuing to investigate in case there is a more low-level solution

—A

On 16 Jun 2016, at 19:41, James Hardwick [email protected] wrote:

I've dug around in defaults, doing a pre/post password change diff, and found them to be identical. If anyone has any other ideas on where the password save options might be so that they can be automated, I'd love to hear!


You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

from mas.

argon avatar argon commented on September 28, 2024

Have you already "purchased" the free apps in your account?

from mas.

mathiasjakobsen avatar mathiasjakobsen commented on September 28, 2024

Yep, I have.

from mas.

rlandsberg avatar rlandsberg commented on September 28, 2024

Hey I can confirm the same error, I have a clean El Cap install in a VM with Mas installed from Homebrew.

'mas install 867299399' for Omni Focus (paid) works perfectly
'mas install 803453959' for Slack (free but installed on other machines with this AppleID) fails with "Unknown Error"

from mas.

 avatar commented on September 28, 2024

I am seeing the same issue and can confirm that @timsutton's solution works.

from mas.

wischi avatar wischi commented on September 28, 2024

Can the "save password" be automated?

from mas.

timsutton avatar timsutton commented on September 28, 2024

It looks to me like that stores unique authentication information, although it's quite possible that it could be done via another (or more) private framework methods..

from mas.

wischi avatar wischi commented on September 28, 2024

I would be happy if mas could invoke the dialog on a freshly setup mac somehow. This didn't work when I tried it. It only worked after I purchased free app I didn't buy before manually.

from mas.

mathiasjakobsen avatar mathiasjakobsen commented on September 28, 2024

I can also confirm, that @timsutton's solution works for me.

from mas.

jamesdh avatar jamesdh commented on September 28, 2024

I've dug around in defaults, doing a pre/post password change diff, and found them to be identical. If anyone has any other ideas on where the password save options might be so that they can be automated, I'd love to hear!

from mas.

jamesdh avatar jamesdh commented on September 28, 2024

@argon I tried the following applescript, but I'm not having luck getting osascript on the assistive access list:

tell application "System Preferences"
    reveal pane id "com.apple.preferences.appstore"
    activate
end tell

tell application "System Events"
    tell process "System Preferences"
        tell window "App Store"
            set purchases to pop up button 1
            click purchases
            click menu item 2 of menu 1 of purchases
            set free to pop up button 2
            click free
            click menu item 2 of menu 1 of free
        end tell
    end tell
end tell

from mas.

edrozenberg avatar edrozenberg commented on September 28, 2024

Don't know if this is related to the same issue, but on this specific app Garmin Basecamp mas hangs and doesn't seem to do anything (app is already installed using App Store app):

mas install 411052274

from mas.

Luavis avatar Luavis commented on September 28, 2024

There are occur errors in call method purchase.perform in Downloader.swift

dispatch_group_enter(group)
purchase.perform { purchase, unused, error, response in
    if let error = error {
        purchaseError = MASError(code: .PurchaseError, sourceError: error)
        dispatch_group_leave(group)
        return
    }
// ...
}

I tested with 'Slack' app(fail with Unknown Error.). when print out error object

(lldb) po error
error: Execution was interrupted, reason: EXC_BAD_ACCESS (code=1, address=0x600000c0620).

from mas.

argon avatar argon commented on September 28, 2024

I think I have fixed this in the latest code in master. If anyone is able to build it and verify the problem is solved for them I will package a new release.

from mas.

timsutton avatar timsutton commented on September 28, 2024

I would like to test this, just won't have a chance until tomorrow at the earliest. To be clear, this change (e7750) is what was needed to not trigger the sign in again just for the purposes of storing the password?

from mas.

argon avatar argon commented on September 28, 2024

I don't fully understand it but with that change I am able to install free apps without being prompted for a password. Without that change I do see the password prompt so it appears to have fixed it.

from mas.

timsutton avatar timsutton commented on September 28, 2024

Just did a quick test on a VM that had never signed into the App Store. mas signin <user> <pass> and mas install 1018109117 to install El Capitan worked as expected. Only hangup was that my machine was located in Canada, so the App Store had defaulted to that and first prompted me that it would switch it. But that's no different than before.

For what it's worth, I checked the App Store prefs once the download started and this is what it showed:

screen shot 2016-09-15 at 9 47 22 am

from mas.

argon avatar argon commented on September 28, 2024

The change is not expected to change the password settings, only to fix redownload of previously "purchased" free apps which was not possible before.

from mas.

timsutton avatar timsutton commented on September 28, 2024

Thanks for clarifying. I think the settings in my screenshot were the system defaults anyway.

from mas.

argon avatar argon commented on September 28, 2024

I am closing this issue and will release latest changes as 1.3.0

from mas.

jessepeterson avatar jessepeterson commented on September 28, 2024

I'm not sure if I'm seeing a recurrence of this issue but I'm getting a Mac App Store sign-in dialog when attempting to re-install an app after a while. If I do a mas reset then mas signin it will successfully install an app without a prompt. However sometime later the "state" (I guess) resets itself and I'm no longer able to install free already-purchased apps without entering a password at a MAS dialog.

from mas.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.