flutter / flutter

Flutter makes it easy and fast to build beautiful apps for mobile and beyond
https://flutter.dev
BSD 3-Clause "New" or "Revised" License
162.21k stars 26.65k forks source link

Exception has occurred. ProcessException (ProcessException: The requested operation requires elevation. Command: C:\Windows\System32\osk.exe ) #147513

Closed Rijankunwar3691 closed 2 weeks ago

Rijankunwar3691 commented 2 weeks ago

Steps to reproduce

Click on TextFormField

Expected results

I want to open an onScreen keyBoard for my flutter desktop app when focused on textfield.

Actual results

Exception has occurred. ProcessException (ProcessException: The requested operation requires elevation.

Command: C:\Windows\System32\osk.exe )

Code sample

BuildTextFormField( onTap: () { const oskPath = 'C:\Windows\System32\osk.exe'; Process.run(oskPath, []); }, prefixIcon: const Icon(Icons.person), onChanged: (p0) {}, controller: userNameController, hintText: "Username"),

Screenshots or Video

Screenshots / Video demonstration [Upload media here]

Logs

Logs ```console [Paste your logs here] ```

Flutter Doctor output

Doctor output ```console [Paste your output here] ```
danagbemava-nc commented 2 weeks ago

You are running a process that requires elevated access. You should make sure you run your application as administrator or make sure your application can run in elevated access. See https://stackoverflow.com/questions/71090014/how-to-launch-other-appgo-service-when-flutter-windows-app-start/71123035#71123035

Closing from here as this is not really a flutter issue.

Thank you

github-actions[bot] commented 3 days ago

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.