# HG changeset patch # User Christopher Rogers # Date 1285628292 0 # Node ID 636f0934c2b02626071df6bb51872b18f41de80a # Parent 168eed80580ca1a9532bf25dbab618766348ea75# Parent 6027bd00dcaa6b1c876d6b0abdb1860260c26eac merge diff -r 168eed80580c -r 636f0934c2b0 slim/stuff/NoPwdForCmd.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/slim/stuff/NoPwdForCmd.patch Mon Sep 27 22:58:12 2010 +0000 @@ -0,0 +1,33 @@ +--- slim-1.3.1/app.cpp Fri Sep 26 00:54:15 2008 ++++ slim-1.3.1nopwd/app.cpp Mon May 3 19:44:41 2010 +@@ -413,6 +413,7 @@ + case Panel::Exit: + case Panel::Console: + return true; // <--- This is simply fake! ++ + default: + break; + }; +@@ -434,6 +435,11 @@ + case Panel::Console: + cerr << APPNAME << ": Got a special command (" << LoginPanel->GetName() << ")" << endl; + return true; // <--- This is simply fake! ++ case Panel::Suspend: ++ case Panel::Halt: ++ case Panel::Reboot: ++ if (cfg->getOption("root_password") == "false") ++ return true; + default: + break; + } +--- slim-1.3.1/cfg.cpp Fri Sep 26 00:54:15 2008 ++++ slim-1.3.1nopwd/cfg.cpp Sun May 2 23:36:46 2010 +@@ -37,6 +37,7 @@ + options.insert(option("login_cmd","exec /bin/bash -login ~/.xinitrc %session")); + options.insert(option("halt_cmd","/sbin/shutdown -h now")); + options.insert(option("reboot_cmd","/sbin/shutdown -r now")); ++ options.insert(option("root_password","true")); + options.insert(option("suspend_cmd","")); + options.insert(option("sessionstart_cmd","")); + options.insert(option("sessionstop_cmd","")); +Common subdirectories: slim-1.3.1/themes and slim-1.3.1nopwd/themes