From 27aa13d396591c2ed0d7a421f212d5a89a278d7b Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Fri, 31 Aug 2007 13:06:40 +0000 Subject: [PATCH] symlink attacks, *gasp* svn path=/trunk/KDE/kdebase/workspace/; revision=706856 --- effects/videorecord.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/effects/videorecord.cpp b/effects/videorecord.cpp index 8fe8c44473..0e582d2b40 100644 --- a/effects/videorecord.cpp +++ b/effects/videorecord.cpp @@ -25,7 +25,7 @@ License. See the file "COPYING" for the exact licensing terms. - ./autogen.sh - the usual configure && make && make install procedure - Video is saved to /tmp/kwin_video.cps, use + Video is saved to $HOME/kwin_video.cps, use "cpsrecode -i kwin_video.cps -o - | mplayer -" to play, use mencoder the same way to create a video. @@ -112,7 +112,8 @@ void VideoRecordEffect::startRecording() return; } // TODO - if( CapturySetOutputFileName( client, "/tmp/kwin_video.cps" ) != CAPTURY_SUCCESS ) + if( CapturySetOutputFileName( client, QFile::encodeName(QDir::homePath()+ + "/kwin_video.cps").constData() ) != CAPTURY_SUCCESS ) { kDebug( 1212 ) << "Video recording file open failed"; return;