Using sudo to suspend the computer/device via APM

This commit is contained in:
Pierre Pronchery 2011-02-05 11:34:13 +00:00
parent 312e929ddd
commit 42cfe3f9d3

View File

@ -777,7 +777,7 @@ static int _panel_helper_shutdown_dialog(Panel * panel)
"-h",
#endif
"now", NULL };
char * suspend[] = { "/sbin/apm", "apm", "-s", NULL };
char * suspend[] = { "/usr/bin/sudo", "sudo", "/sbin/apm", "-s", NULL };
#ifdef __NetBSD__
int sleep_state = 3;
#endif