Skip to content

Commit

Permalink
Make it versioned
Browse files Browse the repository at this point in the history
Signed-off-by: falkTX <falktx@falktx.com>
  • Loading branch information
falkTX committed Mar 14, 2024
1 parent faaa01a commit ccd56b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/plugin/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ const char* getAppDir()
// TODO
#else
std::strncpy(appDir, getDataDir(), PATH_MAX - 1);
std::strncat(appDir, "/.last-known-location", PATH_MAX - 1);
std::strncat(appDir, "/.last-known-location-" VERSION, PATH_MAX - 1);

if (FILE* const f = std::fopen(appDir, "r"))
{
Expand Down
2 changes: 1 addition & 1 deletion src/systray/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ void initEvironment()
if (access(dataDir, F_OK) == 0)
{
std::memcpy(path, dataDir, dataDirLen);
std::strncpy(path + dataDirLen, "/.last-known-location", PATH_MAX - dataDirLen - 1);
std::strncpy(path + dataDirLen, "/.last-known-location-" VERSION, PATH_MAX - dataDirLen - 1);

if (FILE* const f = std::fopen(path, "w"))
{
Expand Down

0 comments on commit ccd56b7

Please sign in to comment.