Skip to content
Permalink
Browse files

Fix direct system calling when using log parameter propagation.

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 d7397f8ac244daf1c7b5904ddf2051febdbba917
Showing with 1 addition and 1 deletion.
  1. +1 −1 mythtv/libs/libmythbase/mythsystem.cpp
@@ -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())

0 comments on commit d7397f8

Please sign in to comment.
You can’t perform that action at this time.