audacity / audacity/audacity

Audacity does not check permissions when the folder path contains only drive letter

Open
#1,626 7 comments 0 reactions 0 assignees View on GitHub
AU3-bug P4
Dominant language
C++
Stars
18.4k
Forks
2.7k
Avg merge
3d 1h
Merged PRs (30d)
78

Description

**Describe the bug**
When a user sets only drive letter for [Preferences - Directories - Temporary files directory - Location],
Audacity doesn't check the permissions to the directory and saves it successfully.

**To Reproduce**
Steps to reproduce the behaviour:
1. Go to Preferences - Directories - Temporary files directory
2. Set 'C:' as the value for the 'Location' field, Click the Ok button
3. Restart Audacity

**Actual behaviour**
Audacity raises an error while launching.

**Expected behaviour**
Audacity checks directory permissions when a user clicks on the Ok button in the Preferences - - Temporary files directory

**Screenshots**
![изображение](https://user-images.githubusercontent.com/25851359/132208027-3ccd749a-227e-492d-bdfb-26d4369eed36.png)

**Additional information (please complete the following information):**
- OS: Windows 10
- Version Audacity 3.1.0-alpha-20210903

Contributor guide

Open the contributing guide

Research direction

Start with the Preferences > Directories > Temporary files directory setting and trace how the Location value is validated on Windows when OK is clicked. Reproduce the C: case on Windows 10, then verify that permissions are checked before saving and that Audacity does not fail on restart.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
desktop, operating-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.