Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] C# Dev Kit clutters home folder on Linux instead of using proper XDG folders #455

Closed
NoTuxNoBux opened this issue Aug 30, 2023 · 7 comments
Assignees
Labels
area-telemetry bug Something isn't working

Comments

@NoTuxNoBux
Copy link

NoTuxNoBux commented Aug 30, 2023

Describe the Issue

On Linux, the C# Dev Kit seems to create folders inside the user's home folder:

  • csdevkit, with crash dumps such as dumps/dotnet.436722.dmp
  • Library, with Application Support/Microsoft Visual Studio/prpbg.dat

afbeelding

Steps To Reproduce

  1. Run on Linux.
  2. Enable the plug-in.
  3. Trigger a crash in the language server.

Expected Behavior

Using the home folder (root) to store (any type of) application data is considered bad practice on Linux desktops. XDG user directories should preferably be used for this, which usually evaluate to (hidden) folders such as ~/.cache or ~/.local/share.

Environment Information

  • OS: Linux
  • VSCode version: 1.81.0
  • Dev Kit VSCode extension version: 0.4.8
@NoTuxNoBux NoTuxNoBux added the bug Something isn't working label Aug 30, 2023
@microsoft-issue-labeler microsoft-issue-labeler bot added the area-solution Solution explorer label Aug 30, 2023
@Michael-Eng Michael-Eng added area-telemetry and removed area-solution Solution explorer labels Aug 31, 2023
@lifengl
Copy link
Member

lifengl commented Aug 31, 2023

yes, i hit this problem as well, folders like Library may conflict with folders created by user for their own files, and especially bad.

@jvcdk
Copy link

jvcdk commented Sep 6, 2023

Me too. Please don't clutter my homedir.

@jonathanjyi
Copy link

Thanks for reporting this, we'll take a look.

@jonathanjyi jonathanjyi self-assigned this Sep 12, 2023
@jonathanjyi
Copy link

The prpbg.dat will no longer be created in the next prerelease version of C# Dev Kit. It was fixed here: #118

Will have to reassign the *.dmp file creation question to Michael.

@jonathanjyi jonathanjyi removed their assignment Sep 12, 2023
@MichaelMaio
Copy link

In the next pre-release, dumps on Linux will be moved to a hidden folder already in use by other Microsoft products.

@jonathanjyi
Copy link

Closing on behalf of @MichaelMaio's request.

@rafael-neri
Copy link

Switching to pre-release version works for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-telemetry bug Something isn't working
Projects
None yet
Development

No branches or pull requests

7 participants