On Thu, Jun 04, 2015 at 02:03:58PM +0200, Peter Bienstman wrote:
> Yeah, you also needed to change line 17 in a similar way, that's right.
>
> As for the startup info related error, I seem to recall that the procedure to
> call external programs in Python also had some platform specific stuff, so it
> could be that it does not work out of the box.
>
> Unfortunately, I no longer have access to a linux development machine, but I
> think you need to remove 'info = subprocess.STARTUPINFO()' from
> mplayer_audio.py and all references to it.
>
> Cheers,
>
> Peter
Thanks Peter,
you have been extremely helpful! There was some more tweaking
to do, so I attach 3 .diffs with the changes made. For debian and
derivatives users, the relevant folder where to apply the patches is
/usr/lib/python2.7/dist-packages/mnemosyne/pyqt_ui/
-F
--
You received this message because you are subscribed to the Google Groups
"mnemosyne-proj-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/mnemosyne-proj-users/20150604145610.GA7930%40casa.casa.
For more options, visit https://groups.google.com/d/optout.
20,22c20,22
< info = subprocess.STARTUPINFO()
< info.dwFlags |= subprocess.STARTF_USESHOWWINDOW
< info.wShowWindow = subprocess.SW_HIDE
---
> # info = subprocess.STARTUPINFO()
> # info.dwFlags |= subprocess.STARTF_USESHOWWINDOW
> # info.wShowWindow = subprocess.SW_HIDE
71,73c71,72
< subprocess.Popen(["mplayer.exe", "-ao", "win32"] + sound_files + \
< ["-ss", str(start), "-endpos", str(duration)],
< startupinfo=info)
---
> subprocess.Popen(["mplayer", "-ao", "alsa"] + sound_files + \
> ["-ss", str(start), "-endpos", str(duration)])
20,22c20,22
< info = subprocess.STARTUPINFO()
< info.dwFlags |= subprocess.STARTF_USESHOWWINDOW
< info.wShowWindow = subprocess.SW_HIDE
---
> # info = subprocess.STARTUPINFO()
> # info.dwFlags |= subprocess.STARTF_USESHOWWINDOW
> # info.wShowWindow = subprocess.SW_HIDE
17c17,18
< if sys.platform == "win32":
---
> # if sys.platform == "win32":
> if True:
25c26,27
< if sys.platform == "win32":
---
> # if sys.platform == "win32":
> if True: