Apache OpenOffice (AOO) Bugzilla – Issue 73202
"Run program" interaction : run twice
Last modified: 2007-01-15 17:09:46 UTC
Hi, There is a longstanding bug in impress that is really annoying : When using the "Run program" intercation with gnome on a shell script in _presentation_ mode (you have to configure scripts to be executed by default instead of being edited), _somtimes_ the program is launched twice. Really bad when the program is mplayer ... I have a _dirty_ workaround for everyone who are, like me, using this interaction to launch videos in impress : Use the following script that you could name "mplayer-ooo" to launch your video. It has a very basic mutex mechanism that blocks one thread if multiple threads are launched : very very dirty but I did not found another solution. Best, Jacques #!/bin/sh # Avoid to launch mplayer twice # Fixes Openoffice Run interaction bug LOCKFILE=/tmp/mplayer.lock echo $$ > $LOCKFILE sleep 0.3 MYPID=`cat $LOCKFILE` if [ $MYPID = $$ ]; then if [ `pwd` = "/usr/lib/openoffice/program" ]; then cd $HOME fi /usr/bin/mplayer $* rm $LOCKFILE fi
Reassigned.
In my mind this issue is duplicate to issue 69971 *** This issue has been marked as a duplicate of 69971 ***
I close the issue as duplicate.