Skip to content

Environment.GetFolderPath(Environment.SpecialFolder.MyVideos) returns empty string in OSX #68323

Closed
@nazar322

Description

@nazar322

Description

It returns an empty string on macOS Monterey running under .NET core 5.
My Electron.NET app runs under .NET Core 5.
It used to work well on the previous versions of OSX, now it returns an empty string.
Environment.GetFolderPath(Environment.SpecialFolder.MyMusic) returns correct path.

Reproduction Steps

Call the API.

Expected behavior

Return "/Users/USERNAME/Movies"

Actual behavior

Returns an empty string

Regression?

No response

Known Workarounds

No response

Configuration

  • Microsoft.NETCore.App 5.0.16 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
  • macOS Monterey 12.1
  • osx.12-x64

Other information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions