New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

macOS Mojave does not allow sudo-helper tool anymore #84

Open
gamma opened this Issue Jul 25, 2018 · 9 comments

Comments

Projects
None yet
6 participants
@gamma

gamma commented Jul 25, 2018

Running the prefpane and executing commands using the sudo.app does not work with macOS Mojave anymore and produces the following error:

2018-07-25 11:06:47.243209+0200 System Preferences[11264:321795] Result of `/bin/launchctl list | grep homebrew.mxcl.postgresql$` was (null) with error: {
    NSAppleScriptErrorAppName = sudo;
    NSAppleScriptErrorBriefMessage = "Not authorised to send Apple events to sudo.";
    NSAppleScriptErrorMessage = "Not authorised to send Apple events to sudo.";
    NSAppleScriptErrorNumber = "-1743";
    NSAppleScriptErrorRange = "NSRange: {104, 64}";
}

There is some explanation over here: https://www.felix-schwarz.org/blog/2018/06/apple-event-sandboxing-in-macos-mojave

@jimbojsb

This comment has been minimized.

Owner

jimbojsb commented Jul 25, 2018

That’s really unfortunate. That probably means this prefpane is effectively dead.

@gamma

This comment has been minimized.

gamma commented Jul 25, 2018

That doesn't sound too good. I hope Apple will somehow come around and give us an API that we could could use. A possible other solution would be the EvenBetterAuthorizationSample approach. Not sure if that could work here too if the SMJobBless could be left out somehow ... I used this implementation for an earlier version of a PrefPane and it worked back then ...

@lechie

This comment has been minimized.

lechie commented Sep 15, 2018

Will launchrocket support macOS Mojave ? I really like this product very much,hope to use it for more time.

@gamma

This comment has been minimized.

gamma commented Sep 15, 2018

We did solve this problem over at https://github.com/i-net-software/SetupBuilder/tree/master/src/com/inet/gradle/setup/dmg - If I remember correctly it all came down to an entry in the prefpanes plist file (NSAppleEventsUsageDescription I think) to signal that AppleEvents will be used.

Also: the blog got an update.

@lechie

This comment has been minimized.

lechie commented Sep 16, 2018

We did solve this problem over at https://github.com/i-net-software/SetupBuilder/tree/master/src/com/inet/gradle/setup/dmg - If I remember correctly it all came down to an entry in the prefpanes plist file (NSAppleEventsUsageDescription I think) to signal that AppleEvents will be used.

Also: the blog got an update.

How to solve this problem? @gamma

@thenitai

This comment has been minimized.

thenitai commented Sep 19, 2018

We did solve this problem over at https://github.com/i-net-software/SetupBuilder/tree/master/src/com/inet/gradle/setup/dmg - If I remember correctly it all came down to an entry in the prefpanes plist file (NSAppleEventsUsageDescription I think) to signal that AppleEvents will be used.

Also: the blog got an update.

I somewhat understand this, but should we re-compile with xCode to have this working or? Also, which blog got what update?

Right when any action of Launchrocket results in:

Since sending application [sess=100010 pid=51730 uid:501,501,501 g:20,20 pV:51731] is not permitted to send this AppleEvent to this process, returning an errAEEventNotPermitted reply.

We can, of course, start all applications on the command line, but honestly your tool made it so easy that I really miss it

@Songkunda

This comment has been minimized.

Songkunda commented Sep 25, 2018

I use

brew services

it ok.

@lechie

This comment has been minimized.

lechie commented Sep 25, 2018

I use

brew services

it ok.

Greate! it's really useful

@uniquewk

This comment has been minimized.

uniquewk commented Sep 29, 2018

brew services list

and then

brew services start xxx(your service)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment