diff --git a/resources/docs/Feed-formats.md b/resources/docs/Feed-formats.md index 095af21f9..15474baba 100755 --- a/resources/docs/Feed-formats.md +++ b/resources/docs/Feed-formats.md @@ -67,7 +67,7 @@ Interpreter must be provided in all cases, arguments do not have to be. For exam | Command | Explanation | |---------|-------------| | `bash#-c "curl 'https://github.com/martinrotter.atom'"` | Downloads ATOM feed file with Bash and Curl. | -| `Powershell#"Invoke-WebRequest 'https://github.com/martinrotter.atom' | Select-Object -ExpandProperty Content"` | Downloads ATOM feed file with Powershell. | +| `Powershell#"Invoke-WebRequest 'https://github.com/martinrotter.atom' \| Select-Object -ExpandProperty Content"` | Downloads ATOM feed file with Powershell. | | `php#tweeper.php -v 0 https://twitter.com/NSACareers` | Scrape Twitter RSS feed file with [Tweeper](https://git.ao2.it/tweeper.git). Tweeper is utility which is able to produce RSS feed from Twitter and other similar social platforms. | diff --git a/src/librssguard/services/standard/standardfeed.cpp b/src/librssguard/services/standard/standardfeed.cpp index dcd3c77d6..e9b341e0a 100644 --- a/src/librssguard/services/standard/standardfeed.cpp +++ b/src/librssguard/services/standard/standardfeed.cpp @@ -29,6 +29,7 @@ #include #include #include +#include #include #include #include @@ -677,6 +678,7 @@ QString StandardFeed::runScriptProcess(const QPair& cmd_args, process.setInputChannelMode(QProcess::InputChannelMode::ManagedInputChannel); } + process.setProcessEnvironment(QProcessEnvironment::systemEnvironment()); process.setProcessChannelMode(QProcess::ProcessChannelMode::SeparateChannels); process.setWorkingDirectory(working_directory); process.setProgram(cmd_args.first);