fireshaper / Omnibus

Search for and download comics that are added to GetComics.info easily
Apache License 2.0
181 stars 13 forks source link

[BUG] Open Download Location breaks on a comma in path #25

Open MadameMinty opened 8 months ago

MadameMinty commented 8 months ago

Describe the bug If download location contains a comma (e.g. R:\Comics, webcomics, clicking the Open Download Location button opens the default Windows Explorer location (My Documents). The space after comma is not the problem, e.g. R:\Comics webcomics opens correctly.

To Reproduce Steps to reproduce the behavior:

  1. In Settings, set download location so it contains a comma, e.g. R:\Comics, webcomics
  2. Click on the Open Download Location button

Expected behavior Open Download Location opens download location.

Desktop (please complete the following information):

Additional context Perhaps Process.Start("explorer.exe", path); should be Process.Start("explorer.exe", $"\"{path}\""); ?