dev47apps / droidcam-linux-client

GNU/Linux/nix client for DroidCam
http://www.dev47apps.com
GNU General Public License v2.0
1.08k stars 174 forks source link

Windows client doesn't support folder names with spaces #266

Open alessandro-antonelli opened 11 months ago

alessandro-antonelli commented 11 months ago

Setup: DroidCam Windows Client version 6.5.2 running on Windows 10

Describe the bug

  1. In the windows client menu bar, select DroidCam -> Settings
  2. In the "general" tab, look for "JPG Save Folder"
  3. Select a folder whose path has a space in it, for example: D:\Alessandro Antonelli\Immagini\DroidCam
  4. Click "Save"
  5. Close the client app

Expected behavior After reopening the Windows client app, the "JPG Save Folder" path is still the same chosen above.

Actual behavior After reopening the Windows client app, the "JPG Save Folder" path is truncated to the first space, in my case: D:\Alessandro This leads to the entire "Save to JPG" feature not working, with the image not saved at all anywhere, without any error message or notice given to the user.

Additional context Settings are stored in file C:\ProgramData\droidcam-settings. Saving to the file seems to work fine: when changing the setting and closing the app, the setting file contains the right folder path. The bug seems caused by how the windows client reads the settings file at the next startup.