Skip to content

Windows上获取 “系统 Documents” 目录的方式有问题 #245

Description

@Mikachu2333

你操作了什么?

static char *
_xy_os_home ()
{
  char *home = NULL;
  if (xy_on_windows)
    home = getenv ("USERPROFILE");
  else
    home = getenv ("HOME");
  return home;
}

发生了什么?

我把documents目录移动了就炸了,现在其位于 D:\Documents

本应该怎么样?

success

chsrc 版本

any

你使用的是哪个操作系统?

Windows

OS 版本 / OS 发行版

win11

Log 输出

防止重复问题

  • 我已在项目中搜索过类似的 issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions