From f430a0a7cbad99ce5d87a96c0034a3c57e185536 Mon Sep 17 00:00:00 2001 From: Sizhe Zhao Date: Fri, 27 Feb 2026 09:39:14 +0800 Subject: [PATCH] Fix app path requirements check --- MacLibrary/MainViewModel.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MacLibrary/MainViewModel.swift b/MacLibrary/MainViewModel.swift index 78fc8ea..21be5e6 100644 --- a/MacLibrary/MainViewModel.swift +++ b/MacLibrary/MainViewModel.swift @@ -71,7 +71,7 @@ public class MainViewModel: BaseViewModel { } private func checkApplicationPath() { - let directoryName = URL(filePath: Bundle.main.bundlePath).deletingLastPathComponent().pathComponents.last + let directoryName = URL(filePath: Bundle.main.bundlePath).deletingLastPathComponent().pathComponents.first if directoryName != "Applications" { alert = AlertState( title: String(localized: "Wrong application location"),