BoettcherDasOriginal / LeoConsole

LeoConsole is a terminal with many features! It allows you to quickly and easily program smaller or larger console functions or use those of others. It is written in C# 10 under .NET 6
GNU General Public License v3.0
2 stars 0 forks source link

[Bug] CurrentWorkingPath and User.name not defined in PluginMain yet #38

Closed alexcoder04 closed 2 years ago

alexcoder04 commented 2 years ago

Description

Not sure if it is a bug or a feature, but data.CurrentWorkingPath is not defined yet when PluginMain() is called.

Edit: data.User.name is null as well, however data.SavePath is set.

Steps to Reproduce

Steps to reproduce the behavior:

  1. Create a plugin that uses data.CurrentWorkingPath in its PluginMain method
  2. Run it

Version with bug

Latest git

BoettcherDasOriginal commented 2 years ago

This is not a bug, it works as intended. The user is NULL because the user has not yet logged in. Almost the same applies to the working directory: It is NULL because the default working directory will be slightly different for each user in the future. For example: data/Users/<USERNAME>/