Skip to content
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

Set as default app fails on 1.1.0 #209

Closed
aonez opened this Issue Jun 8, 2018 · 6 comments

Comments

Projects
None yet
2 participants
@aonez
Copy link
Owner

aonez commented Jun 8, 2018

As reported via mail by Wenzel, Keka fails to register as the default app.

  • LSSetDefaultRoleHandlerForContentType was used to register, and seems it's not allowed on a sandboxed environment.

So far, the only solution is to install a helper app.

Take a look at the wiki page: Default-application

@aonez aonez added bug core labels Jun 8, 2018

@aonez aonez added this to the 1.1.1 milestone Jun 8, 2018

@aonez aonez self-assigned this Jun 8, 2018

@gingerbeardman

This comment has been minimized.

Copy link
Contributor

gingerbeardman commented Jun 8, 2018

There's no way. Maybe encourage use of an external script/app?

https://github.com/moretension/duti/

cf. https://superuser.com/a/1092184/33005

@aonez

This comment has been minimized.

Copy link
Owner Author

aonez commented Jun 8, 2018

@gingerbeardman already on it 🤓 I did not expected that.

@aonez

This comment has been minimized.

Copy link
Owner Author

aonez commented Jun 8, 2018

@gingerbeardman I suppose duti will fail from the same issue. I'm creating a custom procedure...

@aonez

This comment has been minimized.

Copy link
Owner Author

aonez commented Jun 8, 2018

This should do it.

A non sandboxed app/extension, that sets Keka as the default app. This application moves itself to the sandbox container, so it can be used from Keka:

  • The extension: KekaDefaultApp-1.0.0.zip
  • I needed to move the the extension to the Desktop once extracted, it failed to install in the downloads folder. If it does not remove itself, take a look at the Console.app for KekaDefaultApp messages.
  • Updated Keka version, that uses the extension: Keka-1.1.1r2722.zip

The sandbox container will move here:
/Users/USERNAME/Library/Containers/com.aone.keka/Data/Library/Application Support/Keka/

All will be documented here.

@gingerbeardman

This comment has been minimized.

Copy link
Contributor

gingerbeardman commented Jun 9, 2018

I needed to move the the extension to the Desktop once extracted, it failed to install in the downloads folder

I think this is an effect of app translocation, see potionfactory/LetsMove#56

@aonez

This comment has been minimized.

Copy link
Owner Author

aonez commented Jun 9, 2018

Thanks for the reference @gingerbeardman! I’ll edit the process in a few hours.

Sadly also LetsMove is not working in sandbox, although it can using XPC services, as Sparkle does. But for the next revision (and the one in the comment above) I’ve removed the framework completely 😔

@aonez aonez closed this Jun 14, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.