Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions MacLibrary/MainViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ public class MainViewModel: BaseViewModel {
}

private func checkApplicationPath() {
let directoryName = URL(filePath: Bundle.main.bundlePath).deletingLastPathComponent().pathComponents.last
if directoryName != "Applications" {
let directoryName = URL(filePath: Bundle.main.bundlePath).pathComponents
if !(directoryName[0] == "/" && directoryName[1] == "Applications") {
alert = AlertState(
title: String(localized: "Wrong application location"),
message: String(localized: "This app needs to be placed under the Applications folder to work."),
Expand Down