[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: playground/network/videocatcher/src
From: Jonas Emanuel Müller <zanoi () zanoi ! net>
Date: 2010-11-26 18:52:42
Message-ID: 20101126185242.BE349AC8A2 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1201102 by jonasemuller:
properly escape arguemnts to shell command
M +2 -1 mainwindowkde.cpp
--- trunk/playground/network/videocatcher/src/mainwindowkde.cpp #1201101:1201102
@@ -53,6 +53,7 @@
#include <KMimeTypeTrader>
#include <KMimeType>
#include <KActionMenu>
+#include <KShell>
#if KDE_IS_VERSION(4,4,0)
#include <KStatusNotifierItem>
@@ -1171,7 +1172,7 @@
if(preferredServiceName == "customCommand") {
QString videoPlaybackCommand = Configure::videoPlaybackCommand();
kDebug() << "videoPlaybackCommand: " << videoPlaybackCommand << " " << \
QStringList(d->m_episodeModel->videoPath(row));
- QString command = videoPlaybackCommand + " " + \
d->m_episodeModel->videoPath(row); + QString command = videoPlaybackCommand + \
" " + KShell::quoteArg(d->m_episodeModel->videoPath(row)); KRun::runCommand(command, \
this); } else {
KRun::KRun *run = new KRun::KRun(d->m_episodeModel->videoPath(row), this);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic