share active-sessions dir with 9p backend
Both backends now use ~/.local/share/ollie/sessions/active since they are mutually exclusive.
This commit is contained in:
parent
8d031fa525
commit
332a90d6af
2
main.go
2
main.go
|
|
@ -808,7 +808,7 @@ func (m *SessionManager) sendNotification(title, body string) {
|
||||||
|
|
||||||
// activeSessionsDir returns the directory for persisting active sessions across restarts.
|
// activeSessionsDir returns the directory for persisting active sessions across restarts.
|
||||||
func activeSessionsDir() string {
|
func activeSessionsDir() string {
|
||||||
return filepath.Join(paths.DataDir(), "active-sessions")
|
return filepath.Join(paths.DataDir(), "sessions", "active")
|
||||||
}
|
}
|
||||||
|
|
||||||
// persistSession saves a single session to the active-sessions directory.
|
// persistSession saves a single session to the active-sessions directory.
|
||||||
|
|
|
||||||
Reference in New Issue