Windows: autostart Run entry is written without quotes when install path contains spaces
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 68/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- dart, flutter
- Domain
- desktop, operating-systems
Research direction
Locate the Windows autostart implementation that writes the HKCU\Software\Microsoft\Windows\CurrentVersion\Run entry, then inspect how the executable path and --hidden argument are assembled. Reproduce with an install path containing spaces and verify that the stored command quotes the full executable path while preserving the argument.
Written by the indexing model from the issue text.
Description
Summary
On Windows, when Gopeed is installed in a path that contains spaces, the autostart registry command is written without quotes around the executable path.
Observed value in HKCU\Software\Microsoft\Windows\CurrentVersion\Run:
D:\Program Files\gopeed\gopeed.exe --hidden
Expected value:
"D:\Program Files\gopeed\gopeed.exe" --hidden
Because the path is not quoted, Task Manager > Startup apps shows a stray entry named Program, and Windows can parse the command incorrectly.
Environment
- Gopeed version:
1.9.3+1 - OS: Windows build
26200 - Install path:
D:\Program Files\gopeed\gopeed.exe
Steps To Reproduce
- Install Gopeed into a directory with spaces, for example
D:\Program Files\gopeed. - Enable Gopeed autostart / launch at login.
- Check the value written to
HKCU\Software\Microsoft\Windows\CurrentVersion\Run. - The executable path is stored without surrounding quotes.
Expected Behavior
The startup command should always quote the executable path before appending arguments.
Suggested Fix
When writing the Windows autostart command, generate:
"<full-path-to-gopeed.exe>" --hidden
instead of:
<full-path-to-gopeed.exe> --hidden
- Dominant language
- Dart
- Stars
- 26.4k
- Forks
- 1.7k
- Avg merge
- 1d 6h
- Merged PRs (30d)
- 50
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from GopeedLab/gopeed
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
-
[UI]: 2.0版 建议优化 Open
Difficulty 3/5 1-2 days Newbie friendliness 52/100
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
-
ed2k连接下载一直是0% Open
Difficulty 3/5 1-2 days Newbie friendliness 32/100
All issues in GopeedLab/gopeed
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
code quality good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Suwayomi/Suwayomi-Tsumiru#479 ·
-
Build Failure: agora_rtc_engine compiled against android-31 while dependencies require android-34+ Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 92/100
conceptadev/noir#95 ·