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