wok-current diff 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 diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/slim/stuff/NoPwdForCmd.patch	Sat Feb 12 12:13:52 2011 +0000
     1.3 @@ -0,0 +1,33 @@
     1.4 +--- slim-1.3.1/app.cpp	Fri Sep 26 00:54:15 2008
     1.5 ++++ slim-1.3.1nopwd/app.cpp	Mon May  3 19:44:41 2010
     1.6 +@@ -413,6 +413,7 @@
     1.7 +             case Panel::Exit:
     1.8 +             case Panel::Console:
     1.9 +                 return true; // <--- This is simply fake!
    1.10 ++         
    1.11 +             default:
    1.12 +                 break;
    1.13 +         };
    1.14 +@@ -434,6 +435,11 @@
    1.15 +             case Panel::Console:
    1.16 +                 cerr << APPNAME << ": Got a special command (" << LoginPanel->GetName() << ")" << endl;
    1.17 +                 return true; // <--- This is simply fake!
    1.18 ++	    case Panel::Suspend:
    1.19 ++            case Panel::Halt:
    1.20 ++            case Panel::Reboot:
    1.21 ++                if (cfg->getOption("root_password") == "false")
    1.22 ++                  return true;
    1.23 +             default:
    1.24 +                 break;
    1.25 +         }
    1.26 +--- slim-1.3.1/cfg.cpp	Fri Sep 26 00:54:15 2008
    1.27 ++++ slim-1.3.1nopwd/cfg.cpp	Sun May  2 23:36:46 2010
    1.28 +@@ -37,6 +37,7 @@
    1.29 +     options.insert(option("login_cmd","exec /bin/bash -login ~/.xinitrc %session"));
    1.30 +     options.insert(option("halt_cmd","/sbin/shutdown -h now"));
    1.31 +     options.insert(option("reboot_cmd","/sbin/shutdown -r now"));
    1.32 ++    options.insert(option("root_password","true"));
    1.33 +     options.insert(option("suspend_cmd",""));
    1.34 +     options.insert(option("sessionstart_cmd",""));
    1.35 +     options.insert(option("sessionstop_cmd",""));
    1.36 +Common subdirectories: slim-1.3.1/themes and slim-1.3.1nopwd/themes