Martchus / syncthingtray

Tray application and Dolphin/Plasma integration for Syncthing
https://martchus.github.io/syncthingtray/
Other
1.54k stars 43 forks source link

WebView folder selection bug #165

Closed Forger125 closed 1 year ago

Forger125 commented 1 year ago

Before the bug report, I just want to say a huge THANK YOU to @Martchus for this incredible piece of software. It is a huge quality of life improvement to have this available, and it is clearly a very robust project. We don't say it enough as a community / users, so THANK YOU!

Relevant components

Environment and versions

Bug description When using the KDE file selection dialog through the Plasmoid web view "select directory..." button, after saving the actual path used in the synced folder is the Syncthing default based on the Folder Label / Folder ID rather than the Folder Path selected with the select directory button.

Steps to reproduce

  1. Open Syncthing web view from plasmoid
  2. Input basic information about the folder (image 1)
  3. Use "select directory..." button to pick different folder (image 2)
  4. Save folder
  5. The folder in the folder list uses the auto-generated path based on the Folder Label (the one showed in image 1, i.e. /home/***/test) rather than the one selected using the dialog (image 2, i.e. /home/***/bin/cli). The same problem happens if no Folder Labal is used, in that case syncthing just uses the Folder ID

Expected behavior The resulting Syncthing folder should match the directory selected from the KDE file dialog

Screenshots

Image 1 image

Image 2 image

Additional context

Martchus commented 1 year ago

This likely broke a long time ago. I haven't used this feature myself for ages. Considering that it was more a cool hack than something really useful it might make sense to better just remove that hacky and half-baked feature.

Forger125 commented 1 year ago

Thanks so much for the quick response!

Big picture, it would be nice for users in a GUI frontend designed to integrate into the environment to have a GUI folder select, a la Syncthing-GTK. But if it's effectively unmaintained removing it would have the benefits of both resolving a bug / simplifying the code as well as putting it in line with the Syncthing WebGUI :)

And again, thanks for everything you do on this project!

Martchus commented 1 year ago

I've just tested it and it is indeed broken in the ways you've said. For now I've just put it behind the runtime option to enable WIP features. Maybe I'll have the motivation to fix it at some point but it might break again when the official Syncthing GUI alters their HTML/JavaScript code slightly so it is likely not very worthwhile. Maybe I'll create an own GUI for configuring folders at some point but it has of course the problem of having to catch-up with changes in the official GUI so that's also problematic.

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.