Name sqlite file after application id
For non-Flatpak apps
This commit is contained in:
parent
4de2d312ab
commit
92fe4fb256
@ -33,7 +33,7 @@ public class AdwaitaApp: AppStorage {
|
|||||||
/// - Parameter id: The identifier.
|
/// - Parameter id: The identifier.
|
||||||
public required init(id: String) {
|
public required init(id: String) {
|
||||||
pointer = adw_application_new(id, G_APPLICATION_DEFAULT_FLAGS)?.cast()
|
pointer = adw_application_new(id, G_APPLICATION_DEFAULT_FLAGS)?.cast()
|
||||||
DatabaseInformation.setPath(Self.userDataDir().appendingPathComponent("data.sqlite").path)
|
DatabaseInformation.setPath(Self.userDataDir().appendingPathComponent("\(id).sqlite").path)
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Copy a string to the clipboard.
|
/// Copy a string to the clipboard.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user