lllyasviel / lllyasviel/stable-diffusion-webui-forge

[Bug]: Paths with spaces not supported

Open
#265 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
13k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

### Checklist

- [ ] The issue exists after disabling all extensions
- [ ] The issue exists on a clean installation of webui
- [ ] The issue is caused by an extension, but I believe it is caused by a bug in the webui
- [ ] The issue exists in the current version of the webui
- [ ] The issue has not been reported before recently
- [ ] The issue has been reported before but has not been fixed yet

### What happened?

In webui-user.bat, putting in paths like _E:/Stable Diffusion/A1111_ wouldn't work.
That's an old case of spaces not being supported, I'm guessing you're a Linux user but I'm on Windows and haven't seen that issue for very long with any other UI, usually I would just put quotes to fix it, like _"E:/Stable Diffusion/A1111"_.
But not this time. So I had to rename my main folder as 'StableDiffusion', effectively breaking everything inside (all the UIs, symlinks, settings and configs etc), thank you very much.

### Steps to reproduce the problem

Put a space in your path.
Go to webui-user.bat
Paste that path
Execute Run.bat

### What should have happened?

It should have worked.

### What browsers do you use to access the UI ?

_No response_

### Sysinfo

-

### Console logs

```Shell
-
```

### Additional information

_No response_

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reading webui-user.bat and Run.bat, then reproduce the launch from a Windows path containing spaces such as E:/Stable Diffusion/A1111. Trace how the path is passed between the scripts; done means the webui starts successfully without requiring the installation directory to be renamed.

Written by the indexing model from the issue text.

Assessment

Tech stack
shell
Domain
tooling
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.