https://bugs.kde.org/show_bug.cgi?id=465582

--- Comment #4 from Michael <michael.hm...@gmail.com> ---
well, seems nobody has interest in solving this, I can understand that there
are not much people using it, but since kdeconnect is there it should work,
agree?

in fact, it doesn't seem to have a reconnect routine and that should be
corrected

a cmd line like "/usr/bin/kdeconnect-cli -n Moto E7 --refresh" does it, but for
some reason I can not automate it, I believe that is so because udev runs as
root and the command needs to be run as the user 

inside the script to be run from udev_rule  (as root) this command should, but
is not working
su hm -c  '/usr/bin/kdeconnect-cli "-n Moto E7 --refresh"'
the options are interpreted as two, or as a diretcory depends on how I set the
quotes

that's in my udev_rules file
KERNEL=="rndis_host", ACTION=="add", ENV{ID_SERIAL}=="0e8d:2005",
RUN+="/usr/sbin/kdeconnect.sh"

the kernel event in my case:

rndis_host 1-2:1.0 usb0: register 'rndis_host' at usb-0000:00:12.2-2, RNDIS
device, 5a:c0:6b:31:9a:5c
rndis_host 1-2:1.0 enx5ac06b319a5c: renamed from usb0

the kdeconnect reconnect should run after the renaming of usb0, the device ID
"enx*' is random

if somebody here has a better idea or knows how to make it work from udev, it
would be nice

thanks

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to