Hooks
- Fixed the ::execute function used by Hooks and CmdCalendar to run commands,
by following the convention:
"The first argument, by convention, should point to the file name associated
with the file being executed."
(man execvp)
This commit is contained in:
@@ -343,7 +343,6 @@ int CmdCalendar::execute (std::string& output)
|
||||
executable = executable.substr (0, cal) + PACKAGE;
|
||||
|
||||
std::vector <std::string> args;
|
||||
args.push_back (executable);
|
||||
args.push_back ("rc:" + context.rc_file._data);
|
||||
args.push_back ("rc.due:0");
|
||||
args.push_back ("rc.verbose:label,affected,blank");
|
||||
|
||||
Reference in New Issue
Block a user