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

Use Mac OS X specifics #170

Open
4 tasks
bugaevc opened this issue Apr 7, 2023 · 0 comments
Open
4 tasks

Use Mac OS X specifics #170

bugaevc opened this issue Apr 7, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@bugaevc
Copy link
Owner

bugaevc commented Apr 7, 2023

Currently wl-clipboard doesn't do anything OS X / Darwin-specific when running on that platform, but we should!

  • Apparently readlink("/dev/fd/...") doesn't work too well there, we should use the semi-private proc_pidfdinfo() API instead.
  • For mapping a file extension to a MIME type, we should use Cocoa APIs (such as UTTypeCreatePreferredIdentifierForTag or kCFURLTypeIdentifierKey) instead of reading /etc/mime.types.
  • Can we do some similar Cocoa magic to infer file type based on its contents?
  • Research whether there is a better Darwin-specific method to create an anonymous file
@bugaevc bugaevc added the enhancement New feature or request label Apr 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant