Skip to content

Commit

Permalink
Fix direct system calling when using log parameter propagation.
Browse files Browse the repository at this point in the history
This fixes an issue when attempting to run MythSystem commands directly,
outside of a system shell, without any custom arguments, and selecting
to propagate logging arguments. The issue that occurs is that the
logging arguments are incorrectly added to the executable path, meaning
the command cannot be successfully run.
  • Loading branch information
wagnerrp committed Jan 29, 2013
1 parent 58584fa commit d7397f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mythtv/libs/libmythbase/mythsystem.cpp
Expand Up @@ -110,7 +110,7 @@ void MythSystem::SetCommand(const QString &command,
// add logging arguments
if (GetSetting("PropagateLogs"))
{
if (m_args.isEmpty())
if (GetSetting("UseShell") && m_args.isEmpty())
{
m_command += logPropagateArgs;
if (!logPropagateQuiet())
Expand Down

0 comments on commit d7397f8

Please sign in to comment.