Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Run a Python project in Eclipse as root

I use Eclipse as my IDE, and when I run my application I wish the application itself to run as root. My program currently checks if it is root, and if not it restarts itself with gksudo. The output, however, isn't written to the console. I can't use sudo, since it doesn't give me a graphical prompt. (While my program is CLI, Eclipse doesn't permit console interaction afaict)

What's the "right" way to be elevating my application?

like image 417
lfaraone Avatar asked Jun 11 '09 14:06

lfaraone


1 Answers

It may not be an ideal solution, but the rare times that I need this same functionality I end up just running Eclipse as root.

like image 199
Adam Avatar answered Oct 19 '22 22:10

Adam