pkulchenko / ZeroBraneStudio

Lightweight Lua-based IDE for Lua with code completion, syntax highlighting, live coding, remote debugger, and code analyzer; supports Lua 5.1, 5.2, 5.3, 5.4, LuaJIT and other Lua interpreters on Windows, macOS, and Linux
http://studio.zerobrane.com/
Other
2.62k stars 518 forks source link

Struggles with path to .zbstudio using Windows 10 and domain login. #1026

Closed jjvbsag closed 4 years ago

jjvbsag commented 4 years ago

We have some users, which are working on W10 and use a domain login. Now:

ZeroBraneStudio.ini is located at C:\Users\<username>\AppData\Roaming\ZeroBraneStudio.ini which is fine. But .zbstudio\ is located at \\<domainserver>\user\<username>\.zbstudio\ which causes trouble.

I could not locate the reference, where path to .zbstudio is created in ZBS.

Is there any posibility to override the path of .zbstudio to have it at C:\Users\<username>\.zbstudio\ ? or at least at C:\Users\<username>\AppData\Roaming\.zbstudio\ ?

Regards

PS: And no, we cannot change windows environment such as HOMEDRIVE or HOMEPATH, because they are predefined and fixed by IT deparment :-1:

pkulchenko commented 4 years ago

@jjvbsag, why do you care where .zbstudio folder is located? Is it to place the packages there? There are two commands -- include and package -- that allow you to specify where the location of (other) configuration files or package folders/files should be, so you can add those to the main config or pass to the launch command using the -cfg option. See the documentation for details.

Another option is to set HOME variable to point to C:\Users\<username>\ location (HOMEDRIVE and HOMEPATH are checked if HOME is not set), which will then generate C:\Users\<username>\.zbstudio\ path.

Feel free to re-open if this doesn't satisfy your needs.

jjvbsag commented 4 years ago

@pkulchenko My users do care. Because ZBS behaves different depending on

This makes it difficult for them to keep settings, user packages, open project, ... in sync on both situations. Note: Not all of them are experts...


About setting HOME: I will try tomorrow on one of the affected users laptop. But I'm quite sure, IT has disabled these settings.


"Feel free to re-open if this doesn't satisfy your needs." How this? I have no "re-open" button in GitHub.

Regards

pkulchenko commented 4 years ago

"user is logged into domain" => \\user\.zbstudio\ or "user is not logged into domain" => C:\Users\.zbstudio\

Good point; I think using -cfg parameter with package=[[C:\Users\<username>\.zbstudio\]] passed to it, should do it then.

How this? I have no "re-open" button in GitHub.

I see [Reopen and comment] right next to green [Comment] button under the text box.

jjvbsag commented 4 years ago

@pkulchenko :clown_face: I believe, you can see [Reopen and comment] because you are the owner of the project. Me as a :duck: user can not do that.

Because of this we in our company have the workflow:

jjvbsag commented 4 years ago

@pkulchenko just a feedback. Overriding HOME in the user environment was possible and has the wanted effect. So this is now also closed for me. Regards

pkulchenko commented 4 years ago

@jjvbsag, got it; thank you for the update!