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] #40

Closed Redstonerayy closed 2 years ago

Redstonerayy commented 2 years ago

Description

A clear and concise description of what the bug is.

Steps to Reproduce

Steps to reproduce the behavior:

  1. Compile the current version of LeoConsole
  2. Run a plugin where a file should be executed which is not in LeoConsole/src/LeoConsole does not work, even if the current working directory is changed to the right path

    Version with bug

    In what version do you see this issue? Current Version

Last version that worked well

Is there a version on which this did work? If yes, which one? If no or unknown, please write Unknown/Other Unknown/Other

Additional Information

do you want to add anything else?

Redstonerayy commented 2 years ago

i suggest you make the CurrentWorkingPath accessible in Plugins or show how it can be accessed. also i would suggest to set the working path to the homedirectory of the user at the beginning

BoettcherDasOriginal commented 2 years ago

i suggest you make the CurrentWorkingPath accessible in Plugins or show how it can be accessed. also i would suggest to set the working path to the homedirectory of the user at the beginning

Hi, I'm sorry that there currently isn't any documentary about the plugin api that would make these things more clear. First of all, it is possible to access the current working path and it is already set to the user's home path at the beginning. To access the current working path, you must first ensure that data from your plugin class is set. After that you can easily access the current working path using <YourPluginClass>.data.CurrentWorkingPath or <YourDataClass>.CurrentWorkingPath I hope I could help you and thank you for your interest in developing a plugin for LeoConsole!