Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

--appdata & --config argument never actually getting used

已关闭
#5,059 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
48/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
csharp
领域
desktop

调研方向

Start by tracing how --appdata and --config are parsed and how AppInfo and its static objects initialize. Check the preset and plugin manager paths, then verify that the supplied paths are set before any dependent objects initialize and that the example command no longer creates or uses the default directories.

由索引模型根据 Issue 内容生成。

描述

bug priority:high regression
Steps to Reproduce

Use the --appdata or --config arguements.

Other AppInfo paths, preset & plugin manager doesn't actually use the provided path, and default to the usuals.

Expected Behavior

AppInfo should take multiple arguments, and should set them before initializing any paths.

Observed Behavior

When attempting to use AppInfo in any way, we are stuck waiting for it to initialize eveyr static objects, including an instance of AppInfo.

Only then we can set the path specified with arguments.
But by that point, it's already too late.

The other path are already initialized with the wrong appdata directory, the Plugin & Preset manager also have the wrong paths.

Example :

--appdata C:/Users/tinta/Documents/Repo/C#/OTD/Source/OpenTabletDriver-0.6.4.0/bin/userdata

[Settings:Info]	The configuration directory 'C:\Users\tinta\Documents\Repo\C#\OTD\Source\OpenTabletDriver-0.6.4.0\OpenTabletDriver.Daemon\bin\Debug\net10.0\Configurations' has been created
[...]
Tablet Device
Diagnostic Information

Diagnostics-067 Wacom PTK-640.json

Acknowledgements
  • I have installed OpenTabletDriver by following its official installation instructions.
  • I have checked the OpenTabletDriver Wiki and respective FAQ pages, and my issue was not covered or actually fixed.
  • I have searched the existing issues and this new issue is not a duplicate of any.
  • I have written a concise and meaningful title.
  • I am on the latest version of OpenTabletDriver.
主要语言
C#
星标
4.2k
派生
557
平均合并
2 天 20 小时
30 天内合并 PR
46

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

OpenTabletDriver/OpenTabletDriver 的其他 Issue

查看 OpenTabletDriver/OpenTabletDriver 的全部 Issue

相似的 Issue

更多 C# Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。