fix: capitalize Terebi application name

This commit is contained in:
2026-10-18 20:05:12 +02:00
parent 0e860b2ef6
commit 2e61bd7864
5 changed files with 22 additions and 21 deletions
+3 -3
View File
@@ -12,10 +12,10 @@ enum TerebiBootstrap {
let payload = app.appendingPathComponent("Contents/Frameworks/libterebi-player.dylib")
guard let library = dlopen(payload.path, RTLD_NOW | RTLD_LOCAL) else {
let detail = dlerror().map { String(cString: $0) } ?? "The dynamic loader could not load the player."
fail("Could not load the player: \(detail)\n\nPlayer library: \(payload.path)\nRebuild and reinstall terebi.")
fail("Could not load the player: \(detail)\n\nPlayer library: \(payload.path)\nRebuild and reinstall Terebi.")
}
guard let entry = dlsym(library, "terebi_app_main") else {
fail("The player library is missing its application entry point. Rebuild and reinstall terebi.")
fail("The player library is missing its application entry point. Rebuild and reinstall Terebi.")
}
// Keep the declared app executable alive so LaunchServices retains its identity.
typealias PlayerMain = @convention(c) () -> Void
@@ -29,7 +29,7 @@ enum TerebiBootstrap {
application.activate(ignoringOtherApps: true)
let alert = NSAlert()
alert.alertStyle = .critical
alert.messageText = "terebi could not start"
alert.messageText = "Terebi could not start"
alert.informativeText = message
alert.addButton(withTitle: "Quit")
alert.runModal()