use the managedInstallsDir() function to generate the db path

This commit is contained in:
Greg Neagle
2024-08-23 18:47:48 -07:00
parent a073b8410c
commit 9a4df0685e
+1 -3
View File
@@ -9,9 +9,7 @@ import Foundation
func appUsageDBPath() -> String {
// returns path to our appusage DB
// let dbDir = pref("ManagedInstallDir") as? String ?? DEFAULT_MANAGED_INSTALLS_DIR
let dbDir = "/tmp"
return (dbDir as NSString).appendingPathComponent("application_usage.sqlite")
return managedInstallsDir(subpath: "application_usage.sqlite")
}
class ApplicationUsageRecorder {