thayakawa-gh / SlackLogViewer

A viewer for json files exported from Slack workspaces.
MIT License
207 stars 13 forks source link

Shared app with other people #25

Open herianp opened 1 month ago

herianp commented 1 month ago

I want to have the SlackLogViewer at shared server. But if the app is executed on another PC, this error occures: "Cannot make cache folder at C:/Users/{myPcLocation}"

Where can i change code for something like %UserEnv% or something like that?

I dont want to download app on every PC.

Thanks for help!

thayakawa-gh commented 1 month ago

One of the possible workaround is to edit Cache/Location in settings.ini to a path all your PCs can access. settings.ini is generated in the same location as SlackLogViewer.exe when this app is executed for the first time. If you want to fix it from the code, please see GlobalVariables.cpp and fix GetDefaultCacheDir function.

I don't know your PC's OS but on windows, for example, SlackLogViewer determines the cache location in the following order.

  1. Cache/Location
  2. %LocalAppData%
  3. same location as SlackLogViewer.exe

So editing Cache/Location (1) or fixing GetDefaultCacheDir (2 and 3) seem to be both effective in your case.