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

  1. ghost added
    untriagedNew issue has not been triaged by the area owner
    on Apr 21, 2022
  2. tannergooding commented on Apr 21, 2022

    @tannergooding
    Member

    This is basically the same boat as #63214 and #40353

  3. removed
    untriagedNew issue has not been triaged by the area owner
    on Jul 15, 2022
  4. added this to the Future milestone on Jul 15, 2022
  5. ghost added
    in-prThere is an active PR which will close this issue when it is merged
    on Sep 14, 2022
  6. ghost removed
    in-prThere is an active PR which will close this issue when it is merged
    on Sep 26, 2022
  7. ghost locked as resolved and limited conversation to collaborators on Oct 27, 2022
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