diff options
Diffstat (limited to 'src/FbCommands.cc')
-rw-r--r-- | src/FbCommands.cc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/FbCommands.cc b/src/FbCommands.cc index e70cc61..8875ec2 100644 --- a/src/FbCommands.cc +++ b/src/FbCommands.cc | |||
@@ -243,7 +243,14 @@ void SaveResources::execute() { | |||
243 | Fluxbox::instance()->save_rc(); | 243 | Fluxbox::instance()->save_rc(); |
244 | } | 244 | } |
245 | 245 | ||
246 | REGISTER_UNTRUSTED_COMMAND_WITH_ARGS(restart, FbCommands::RestartFluxboxCmd, void); | 246 | REGISTER_COMMAND_PARSER(restart, RestartFluxboxCmd::parse, void); |
247 | |||
248 | FbTk::Command<void> *RestartFluxboxCmd::parse(const string &command, | ||
249 | const string &args, bool trusted) { | ||
250 | if (!trusted && !args.empty()) | ||
251 | return 0; | ||
252 | return new RestartFluxboxCmd(args); | ||
253 | } | ||
247 | 254 | ||
248 | RestartFluxboxCmd::RestartFluxboxCmd(const string &cmd):m_cmd(cmd){ | 255 | RestartFluxboxCmd::RestartFluxboxCmd(const string &cmd):m_cmd(cmd){ |
249 | } | 256 | } |