Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
5d2e80f1
Commit
5d2e80f1
authored
Nov 28, 2022
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
db/Configured: use GetAppCacheDir() instead of GetUserCacheDir()
parent
cfd4d5b1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
NEWS
NEWS
+2
-0
Configured.cxx
src/db/Configured.cxx
+2
-2
No files found.
NEWS
View file @
5d2e80f1
ver 0.23.11 (not yet released)
* database
- simple: move default database to ~/.cache/mpd/db from ~/.cache/mpd.db
* macOS: fix build failure "no archive members specified"
* Windows
- fix crash bug (stack buffer overflow) after I/O errors
...
...
src/db/Configured.cxx
View file @
5d2e80f1
...
...
@@ -51,11 +51,11 @@ CreateConfiguredDatabase(const ConfigData &config,
}
else
{
/* if there is no override, use the cache directory */
const
AllocatedPath
cache_dir
=
Get
User
CacheDir
();
const
AllocatedPath
cache_dir
=
Get
App
CacheDir
();
if
(
cache_dir
.
IsNull
())
return
nullptr
;
const
auto
db_file
=
cache_dir
/
Path
::
FromFS
(
PATH_LITERAL
(
"
mpd.
db"
));
const
auto
db_file
=
cache_dir
/
Path
::
FromFS
(
PATH_LITERAL
(
"db"
));
auto
db_file_utf8
=
db_file
.
ToUTF8
();
if
(
db_file_utf8
.
empty
())
return
nullptr
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment