Bug 476513 - Cannot turn off automatic share from the device
Summary: Cannot turn off automatic share from the device
Status: REPORTED
Alias: None
Product: kdeconnect
Classification: Applications
Component: macos-application (show other bugs)
Version: unspecified
Platform: macOS (DMG) macOS
: NOR normal
Target Milestone: ---
Assignee: Ruixuan Tu
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-03 15:54 UTC by Yaroslav
Modified: 2024-01-16 21:18 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yaroslav 2023-11-03 15:54:42 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. Enable Clipboard
2. Open Clipboard options
3. Remove flag from "Automatically share the clipboard from this device" and click OK
4. Try to copy something,

OBSERVED RESULT

The clipboard data will be sent to the device

EXPECTED RESULT

The clipboard data should bot be sent to the device implicitly

SOFTWARE/OS VERSIONS
Windows: 
macOS: 13.6
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Denys 2023-11-17 14:09:36 UTC
Can confirm the same problem using the latest build of kde-connect for MacOS: https://binary-factory.kde.org/view/MacOS/job/kdeconnect-kde_Nightly_macos/2071/.

KDE Connect: build 2071
MacOS: Sonoma 14.1.1
Comment 2 Denys 2023-11-17 14:47:26 UTC
Actually, looks like the problem is not with the plugin itself, but with the GUI configurator: instead of writing specific plugin's config into:

~/Library/Preferences/kdeconnect/<device_id>/kdeconnect_<plugin_name>/config

(where it should be, and it is in Linux), it puts it into the general config file for the device:

~/Library/Preferences/kdeconnect/<device_id>/config

At the same time, plugins read from the correct config files, and since nothing has been written there, they can't be configured. If I put the configuration in the plugin-specific config files manually, everything works as expected.

The same problem also happens with other plugins: for example, I can't configure the commands to be run or the directory where the transferred files have to be stored. For other plugins it's the same: if I edit their respective config files manually — everything works.

Hope it helps!
Comment 3 Charlie 2023-12-04 20:13:52 UTC
Thanks for that tip.
Copying the config to the right place does seem to allow me to turn off the automatic sharing.
Not sure if it is related or not, but the "Send clipboard" option from the menu seems to do nothing.
So, for now it seems to be "always" or "never".  :-)