mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-28 15:53:55 -04:00
pstats: Move last session and layout files to $XDG_STATE_HOME on Linux
This is a new directory that is slightly more persistent than $XDG_CACHE_HOME
This commit is contained in:
parent
1e542a43a1
commit
1564435bbd
@ -26,7 +26,7 @@ GtkStatsServer() {
|
||||
_last_session = Filename::expand_from(
|
||||
"$HOME/Library/Caches/Panda3D-" PANDA_ABI_VERSION_STR "/last-session.pstats");
|
||||
#else
|
||||
_last_session = Filename::expand_from("$XDG_CACHE_HOME/panda3d/last-session.pstats");
|
||||
_last_session = Filename::expand_from("$XDG_STATE_HOME/panda3d/last-session.pstats");
|
||||
#endif
|
||||
_last_session.set_binary();
|
||||
|
||||
|
@ -33,7 +33,7 @@ static const Filename layout_filename = Filename::binary_filename(
|
||||
#elif defined(__APPLE__)
|
||||
Filename::expand_from("$HOME/Library/Caches/Panda3D-" PANDA_ABI_VERSION_STR "/pstats-layout")
|
||||
#else
|
||||
Filename::expand_from("$XDG_CACHE_HOME/panda3d/pstats-layout")
|
||||
Filename::expand_from("$XDG_STATE_HOME/panda3d/pstats-layout")
|
||||
#endif
|
||||
);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user