| 560 | } |
| 561 | |
| 562 | QStringList OutputExecuteJobPrivate::effectiveCommandLine() const |
| 563 | { |
| 564 | // If we need to use a su-like helper, invoke it as |
| 565 | // "helper -- our command line". |
| 566 | QStringList privilegedCommand = m_owner->privilegedExecutionCommand(); |
| 567 | if( !privilegedCommand.isEmpty() ) { |
| 568 | return QStringList() << m_owner->privilegedExecutionCommand() << QStringLiteral("--") << m_owner->commandLine(); |
| 569 | } else { |
| 570 | return m_owner->commandLine(); |
| 571 | } |
| 572 | } |
| 573 | |
| 574 | } // namespace KDevelop |
| 575 |
no test coverage detected