3 before typing 'make' you could want to open the Makefile and edit
4 some installation and compilation option like INSTALLDIR or the C compiler
6 /* +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
7 /* N O R M A L I N S T A L L A T I O N */
8 /* +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
16 wmlaptop from 1.1 can shutdown the system. To do this, wmlaptop call this
18 $(SHUTDOWN_BIN) +time $(SHUTDOWN_ARGS)
19 where 'time' is --shutdown-delay argument, and SHUTDOWN_BIN and SHUTDOWN_ARGS
20 are defined in src/autoscript.h
22 #define SHUTDOWN_BIN "sudo /sbin/shutdown"
23 #define SHUTDOWN_ARGS "\"wmlaptop is shutting down the system\" -h"
24 As you can see, /sbin/shutdown cannot be executed by normal user, not even if
25 the binary is +s. Hence, if you are going to use wmlaptop as normal user (not
26 root) you need some workaround, like use 'sudo' (this is the default behaviour
27 of wmlaptop). To use "shutdown" with 'sudo' you have to append in /etc/sudoers
30 myusername ALL=(root) NOPASSWD: /sbin/shutdown
32 where 'myusername' is your login name. If you do this, wmlaptop is free to
33 shutdown properly the system. Anyway, you can redefine SHUTDOWN_BIN and
34 SHUTDOWN_ARGS as you prefer (for example to change warning message or to use
35 another normal user shutdown script)
37 wmlaptop is now installed on your system!
39 see README for more informations