Basically i'm trying to implement a Graphic interface with Gtkmm to one of my programs created with C++.
And i don't know if I can make a window appear to be able to put the password of sudo.
I think that could be a command in order to get that but i have read that Gksu has been removed in the latest versions of Ubuntu, for example.
Example of the window that i want.
I solved it with: pkexec
system(("pkexec rm -rf "+pathi+"/'"+games[k]+"'").c_str());
More information about commands as sudo in: