Page 1 of 1

Custom build target require user input on build console...

Posted: Sun Dec 12, 2010 1:07 am
by zainka
I try to create a custom build target which requires sudo rights. This new target will do a "sudo make install" into a root folder.
Creating the build target is simple and it works and is starting by asking for user credentials. However, I am not able to give any input to the build console thus the build will not continue. I need a way to give credentials. How can this be accomplished? Meantime I can do it from command line.

Re: Custom build target require user input on build console...

Posted: Sun Dec 12, 2010 12:03 pm
by eranif
You should do this:

Instead of using command like this:

Code: Select all

sudo make install
Change it to:

Code: Select all

sudo -A make install
Set this environment variable into codelite from the "Settings | Environment variables" menu:

Code: Select all

SUDO_ASKPASS=/usr/bin/ssh-askpass
Now when running the install target, a dialog will pop asking for the sudo password
Eran

Re: Custom build target require user input on build console...

Posted: Sun Dec 12, 2010 8:41 pm
by zainka
Greate, Thankyou