Hello.
I am trying to shutdown Mint OS from with a dialog but nothing works.
What is wrong?
1 2 3 4 5 6
|
void shutdownLinuxDialog::OnAbout(wxCommandEvent &event)
{
wxString msg = wxbuildinfo(long_f);
wxMessageBox(msg, _("Welcome to..."));
system("shutdown -f");
}
|
Last edited on
I expect root privileges are required to execute shutdown at the command line.
Ok but how a program can shutdown without root privileges?
For example gshutdown how turns off OS?