Skip to content

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions