wok-current view slim/stuff/NoPwdForCmd.patch @ rev 8520

Up: git to 1.7.4.1.
author Christopher Rogers <slaxemulator@gmail.com>
date Sat Feb 12 12:13:52 2011 +0000 (2011-02-12)
parents
children
line source
1 --- slim-1.3.1/app.cpp Fri Sep 26 00:54:15 2008
2 +++ slim-1.3.1nopwd/app.cpp Mon May 3 19:44:41 2010
3 @@ -413,6 +413,7 @@
4 case Panel::Exit:
5 case Panel::Console:
6 return true; // <--- This is simply fake!
7 +
8 default:
9 break;
10 };
11 @@ -434,6 +435,11 @@
12 case Panel::Console:
13 cerr << APPNAME << ": Got a special command (" << LoginPanel->GetName() << ")" << endl;
14 return true; // <--- This is simply fake!
15 + case Panel::Suspend:
16 + case Panel::Halt:
17 + case Panel::Reboot:
18 + if (cfg->getOption("root_password") == "false")
19 + return true;
20 default:
21 break;
22 }
23 --- slim-1.3.1/cfg.cpp Fri Sep 26 00:54:15 2008
24 +++ slim-1.3.1nopwd/cfg.cpp Sun May 2 23:36:46 2010
25 @@ -37,6 +37,7 @@
26 options.insert(option("login_cmd","exec /bin/bash -login ~/.xinitrc %session"));
27 options.insert(option("halt_cmd","/sbin/shutdown -h now"));
28 options.insert(option("reboot_cmd","/sbin/shutdown -r now"));
29 + options.insert(option("root_password","true"));
30 options.insert(option("suspend_cmd",""));
31 options.insert(option("sessionstart_cmd",""));
32 options.insert(option("sessionstop_cmd",""));
33 Common subdirectories: slim-1.3.1/themes and slim-1.3.1nopwd/themes