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

Sublime Text opens as UNREGISTERED when using MacBook Pro as AirPlay 2 speaker #5389

Closed
fheidenreich opened this issue May 1, 2022 · 4 comments
Assignees
Labels
Milestone

Comments

@fheidenreich
Copy link

Description of the bug

Sublime Text opens as UNREGISTERED when using an MacBook Pro M1 as an AirPlay 2 speaker.

This happens when Sublime Text is opened while the device is being used as an AirPlay target. Stopping the stream and re-opening Sublime Text opens it in registered mode again.

It seems to be related to the unique identifier Sublime Text is using to encrypt the license key.

This blog post might shed some light into this issue:
https://mjtsai.com/blog/2019/10/16/receipt-validation-and-airplay-2/

Steps to reproduce

  1. Start streaming to a MacBook Pro M1 via AirPlay.
  2. Open Sublime Text.
  3. Note the UNREGISTERED state of the application (and after some save operations a corresponding dialog to appear).

Expected behavior

Start in REGISTERED mode even if MacBook Pro M1 is used as an AirPlay target.

Actual behavior

Starts in UNREGISTERED mode if MacBook Pro M1 is used as an AirPlay target.

Sublime Text build number

4126

Operating system & version

macOS Monterey 12.3.1

(Linux) Desktop environment and/or window manager

No response

Additional information

No response

OpenGL context information

No response

@fheidenreich
Copy link
Author

Here is some new sample code from Apple that also works when AirPlay 2 is used:

https://developer.apple.com/documentation/appstorereceipts/validating_receipts_on_the_device

@jfcherng
Copy link

jfcherng commented May 21, 2022

Most likely caused by #5144 (comment). As a workaround, you can use plaint text license in ~/Library/Application Support/Sublime Text/Local/License.sublime_license.

@fheidenreich
Copy link
Author

Thanks! It's License.sublime_license (notice the underscore).

@BenjaminSchaaf
Copy link
Member

Build 4135 now defaults to using the serial number instead of the mac address to encrypt the license key on disk.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants