Skip to content

Commit

Permalink
Better comment for setting the nixStaticData variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
bluescan committed Aug 11, 2024
1 parent 5926183 commit 97defc4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Src/TacentView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4259,8 +4259,12 @@ int main(int argc, char** argv)

#elif defined(PACKAGE_NIX)
{
// @todo @poperigby I'm not sure about these locations.
// @todo @poperigby
// I'm not sure about these locations. If the NIX_DATA_DIR is NOT specific to
// tacentview and is system-wide try replacing the next line with:
// tString nixStaticData = "/usr/share/tacentview/Data/";
tString nixStaticData = tSystem::tGetEnvVar("NIX_DATA_DIR") + "/";

tString homeDir = tSystem::tGetHomeDir();
tString localAppDir = homeDir + ".tacentview/";
if (!tSystem::tDirExists(localAppDir))
Expand Down

0 comments on commit 97defc4

Please sign in to comment.