From 6d1513601dee27efc79e592a21a230851df8b270 Mon Sep 17 00:00:00 2001
From: Ariver <shanghai3168@gmail.com>
Date: Sat, 23 May 2026 21:54:18 +0800
Subject: [PATCH] Prepare TagLauncher 7.6.0 release
---
Apptag/DataLayer.swift | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/Apptag/DataLayer.swift b/Apptag/DataLayer.swift
index a3fc089..9f9b9f0 100644
--- a/Apptag/DataLayer.swift
+++ b/Apptag/DataLayer.swift
@@ -215,12 +215,13 @@
guard !isNestedInsideAppBundle(resolvedURL) else { return }
guard seenResolvedPaths.insert(resolvedURL.path).inserted else { return }
+ let bundle = Bundle(url: displayURL) ?? Bundle(url: resolvedURL)
+ let bundleId = bundle?.bundleIdentifier
+ guard !isTagLauncherBundle(bundleId) else { return }
+
let name = displayURL.deletingPathExtension().lastPathComponent
let icon = NSWorkspace.shared.icon(forFile: displayURL.path)
icon.size = NSSize(width: 96, height: 96)
-
- let bundle = Bundle(url: displayURL) ?? Bundle(url: resolvedURL)
- let bundleId = bundle?.bundleIdentifier
let localizedNamesByLanguage = localizedAppNameMap(
bundle: bundle,
fallbackName: name
@@ -242,6 +243,10 @@
))
}
+ private static func isTagLauncherBundle(_ bundleIdentifier: String?) -> Bool {
+ bundleIdentifier?.caseInsensitiveCompare(AppIdentity.bundleIdentifier) == .orderedSame
+ }
+
private static func localizedAppNameMap(
bundle: Bundle?,
fallbackName: String
--
Gitblit v1.9.3