Using sudo to suspend the computer/device via APM
This commit is contained in:
parent
312e929ddd
commit
42cfe3f9d3
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user