Skip to content

Commit

Permalink
Merge pull request #25 from zenangst/exclude/electron-apps
Browse files Browse the repository at this point in the history
Exclude Electron apps
  • Loading branch information
zenangst authored Oct 4, 2018
2 parents e234e11 + 750d701 commit 4e9e52c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Resources/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>0.4.1</string>
<string>0.4.2</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>LSMinimumSystemVersion</key>
Expand Down
6 changes: 6 additions & 0 deletions Sources/Applications/Logic/ApplicationsLogicController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,12 @@ class ApplicationsLogicController {
let bundleIdentifier = plist.value(forPlistKey: .bundleIdentifier),
let bundleName = plist.value(forPlistKey: .bundleName) else { continue }

// Exclude Electron apps
let electronPath = "\(url.path)/Contents/Frameworks/Electron Framework.framework"
if FileManager.default.fileExists(atPath: electronPath) {
continue
}

let suffix = "Preferences/\(bundleIdentifier).plist"
let appPreferenceUrl = libraryDirectory.appendingPathComponent(suffix)
let appContainerPreferenceUrl = libraryDirectory.appendingPathComponent("Containers/\(bundleIdentifier)/Data/Library/\(suffix)")
Expand Down

0 comments on commit 4e9e52c

Please sign in to comment.