about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/video/vokoscreen/ffmpeg-out-of-box.patch
blob: afcee3f9715f99af11a4dde7ef4479c61cc12d76 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
diff --git a/settings/QvkSettings.cpp b/settings/QvkSettings.cpp
index 3008e62..07485bd 100644
--- a/settings/QvkSettings.cpp
+++ b/settings/QvkSettings.cpp
@@ -66,17 +66,8 @@ void QvkSettings::readAll()
       Minimized = settings.value( "Minimized", 0 ).toUInt();
       MinimizedByStart = settings.value( "MinimizedByStart", 0 ).toUInt();
       Countdown = settings.value( "Countdown", 0 ).toUInt();
-      QFile file;
-      if ( file.exists( qApp->applicationDirPath().append( "/bin/ffmpeg" ) ) == true )
-      {
-        vokoscreenWithLibs = true;
-        Recorder = qApp->applicationDirPath().append( "/bin/ffmpeg" );
-      }
-      else
-      {
-        vokoscreenWithLibs = false;
-        Recorder = settings.value( "Recorder", "ffmpeg" ).toString();
-      }
+      vokoscreenWithLibs = true;
+      Recorder = settings.value( "Recorder", "@ffmpeg@/bin/ffmpeg" ).toString();
     settings.endGroup();
     
     settings.beginGroup( "Videooptions" );