bughelp wantedinstall-updatelinuxpackagingrpm
仓库指标
- Star
- (74,848 star)
- PR 合并指标
- (平均合并 11小时 43分钟) (30 天内合并 1,000 个 PR)
描述
Does this issue occur when all extensions are disabled?: Yes
- VS Code Version: 1.96.0 (RPM from the Microsoft repo)
- OS Version: Fedora 41
The %post scriptlet in the RPM spec file deletes /usr/local/bin/code even if it doesn't belong to a previous vscode installation. This is very irritating because it's the easiest way to append arbitrary command line arguments such as --ozone-platform=wayland system-wide. Please either add some validation before deleting it, or just stop deleting it altogether.
https://github.com/microsoft/vscode/blob/1.96.0/resources/linux/rpm/code.spec.template#L48-L51
Steps to Reproduce:
- Install a script at
/usr/local/bin/codewhich launches/usr/bin/codewith extra arguments - Reinstall the RPM file provided by Microsoft
/usr/local/bin/codeis now deleted