I was thinking of calling GKSu but I understand it's deprecated. How else can I do this?


Rethink your application. It shouldn't be running the GUI as root. It should just get root for the things it needs to do as root. This is what gksudo is for. You should run as non-root, but launch gksudo blah blah in a subprocess when you need to do blah blah as root.

Not the answer you're looking for? Browse other questions tagged or ask your own question.