From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- .../gtk-recordmydesktop-0.3.8-check-for-jack.patch | 36 ++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 media-video/gtk-recordmydesktop/files/gtk-recordmydesktop-0.3.8-check-for-jack.patch (limited to 'media-video/gtk-recordmydesktop/files') diff --git a/media-video/gtk-recordmydesktop/files/gtk-recordmydesktop-0.3.8-check-for-jack.patch b/media-video/gtk-recordmydesktop/files/gtk-recordmydesktop-0.3.8-check-for-jack.patch new file mode 100644 index 000000000000..7743d43199cd --- /dev/null +++ b/media-video/gtk-recordmydesktop/files/gtk-recordmydesktop-0.3.8-check-for-jack.patch @@ -0,0 +1,36 @@ +--- gtk-recordmydesktop-0.3.8.orig/src/rmdPrefsWidget.py 2009-10-12 12:40:32.470028483 +0100 ++++ gtk-recordmydesktop-0.3.8/src/rmdPrefsWidget.py 2009-10-12 12:41:08.086044353 +0100 +@@ -323,11 +323,33 @@ + for i in range(4): + self.labelbox[i].show() + self.notebook.show() ++ ++ def which(self,program): ++ import os ++ def is_exe(fpath): ++ return os.path.exists(fpath) and os.access(fpath, os.X_OK) ++ ++ fpath, fname = os.path.split(program) ++ if fpath: ++ if is_exe(program): ++ return program ++ else: ++ for path in os.environ["PATH"].split(os.pathsep): ++ exe_file = os.path.join(path, program) ++ if is_exe(exe_file): ++ return exe_file ++ ++ return None ++ ++ + def __runJackLSP__(self,button=None): + if button!=None: + self.__getSelectedPorts__() + self.ports=[] + failed=0 ++ if self.which('jack_lsp') == None: ++ self.jack_button.set_sensitive(False) ++ return + (stdin,stdout,stderr)=os.popen3(['jack_lsp'],'t') + ports=stdout.readlines() + stdin.close() -- cgit v1.2.3