Skip to content

Commit

Permalink
[56_1] make texmacs cache version-sensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
da-liii committed Sep 24, 2023
1 parent 9b16679 commit cd4a6d1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/System/Misc/sys_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -156,15 +156,15 @@ get_texmacs_home_path () {
url
get_tm_cache_path () {
#if defined(OS_WIN) || defined(OS_MINGW)
return url ("$LOCALAPPDATA/Xmacs/system/cache");
return url ("$LOCALAPPDATA/Xmacs/system/cache/" * XMACS_VERSION);
#endif
#if defined(OS_MACOS)
return url ("$HOME/Library/Caches/Xmacs");
return url ("$HOME/Library/Caches/Xmacs/" * XMACS_VERSION);
#endif
#if defined(OS_LINUX)
return url ("$XDG_CACHE_HOME/Xmacs");
return url ("$XDG_CACHE_HOME/Xmacs/" * XMACS_VERSION);
#endif
return url ("$TEXMACS_HOME_PATH/system/cache");
return url ("$TEXMACS_HOME_PATH/system/cache/" * XMACS_VERSION);
}

array<string>
Expand Down

0 comments on commit cd4a6d1

Please sign in to comment.