dotnet / dotnet/vscode-dotnet-runtime

Use /usr/lib/os-release and /etc/os-release

Open
#2,337 2 comments 1 reaction 1 assignee Assigned to @Copilot View on GitHub
bug P2 ux
Dominant language
TypeScript
Stars
209
Forks
455
PR merge metrics
No merged PRs in 30d

Description

### Describe the bug.

Make sure your program can skin a cat multiple ways! Look for it in both places and new users will be able to actually install the thing.

The file /etc/os-release takes precedence over /usr/lib/os-release. Applications should check for the former, and exclusively use its data if it exists, and only fall back to /usr/lib/os-release if it is missing. Applications should not read data from both files at the same time. /usr/lib/os-release is the recommended place to store OS release information as part of vendor trees. /etc/os-release should be a relative symlink to /usr/lib/os-release, to provide compatibility with applications only looking at /etc.

Sauce: https://bbs.archlinux.org/viewtopic.php?id=251724

### Please attach log file(s) here if you have any.

Gen X doesn't need log files. ;-)

### Reproduction Steps

Remove os-release file @ /etc/os-release and/or break sim link to /usr/lib/os-release. This is to make it act like this info didn't get placed correctly.

### Expected Behavior

Microsoft employees to test their code!

### Exceptions & Errors (if any)

_No response_

### .NET Install Tool Version

2.3.6

### Your operating system? Please provide more detail, such as the version and or distro above.

Linux

### VS Code Version

Arch

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.