Bug 479464

Summary: Running command doesn't work when there are spaces in the command
Product: [Applications] kdeconnect Reporter: NovaMuel <n>
Component: windows-applicationAssignee: brute4s99 <piyushaggarwal002>
Status: REPORTED ---    
Severity: normal CC: andrew.g.r.holmes, blahblahbrian, bobbywibowo, cwo.kde, tremolo4
Priority: NOR    
Version First Reported In: 24.01.75   
Target Milestone: ---   
Platform: Other   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description NovaMuel 2024-01-06 14:42:38 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
***
I was trying to run "Rundll32.exe user32.dll,LockWorkStation" to lock my pc on my Android Phone, but I quickly realized that it is not working.
I used Microsoft Store KDE-Connect and this command works perfect.

However, when I tried "lock.bat", which contains "Rundll32.exe user32.dll,LockWorkStation", it works.




STEPS TO REPRODUCE
1. Connect two devices, one on Android and another one on Windows
2. Add Rundll32.exe user32.dll,LockWorkStation to Windows device's command list
3. Run it on Android Phone

OBSERVED RESULT
Nothing happened

EXPECTED RESULT
Windows should be locked

SOFTWARE/OS VERSIONS
Windows: 
Edition	Windows 11 Pro
Version	23H2
OS build	22631.2861


Linux/KDE Plasma:  Android 13
ADDITIONAL INFORMATION
Comment 1 tremolo4 2024-04-15 22:20:40 UTC
*** Bug 483426 has been marked as a duplicate of this bug. ***