run executable file of qt creator as sudo
Hello folks,
I want to run the executable file made by qt creator as sudo(root) because my device attached with qt creator needs to run as sudo.
Every time I need to open terminal and run my executable file as sudo ./executable..Now I want to run the project direct in qt creator by pressing run button.
Can anyone help me on the same.
Please reply asap
Thanks
Re: run executable file of qt creator as sudo
You could create a script that runs sudo your application and change the project's run settings to run the script instead of the program.
But of course it would be better to check if you really have to run the program with elevated priviledges.
Cheers,
_
Re: run executable file of qt creator as sudo
Re: run executable file of qt creator as sudo
Quote:
Originally Posted by
ftl_embedded
how to do that?
Do what?
Write a script?
Change run settings?
Find a way of not requiring sudo?
Cheers,
_