Issue 73202 - "Run program" interaction : run twice
Summary: "Run program" interaction : run twice
Status: CLOSED DUPLICATE of issue 69971
Alias: None
Product: Impress
Classification: Application
Component: viewing (show other issues)
Version: OOo 2.1
Hardware: PC Linux, all
: P3 Trivial (vote)
Target Milestone: ---
Assignee: christian.guenther
QA Contact: issues@graphics
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-06 15:33 UTC by ulutte
Modified: 2007-01-15 17:09 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description ulutte 2007-01-06 15:33:01 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
Comment 1 wolframgarten 2007-01-08 07:54:41 UTC
Reassigned.
Comment 2 christian.guenther 2007-01-15 17:09:06 UTC
In my mind this issue is duplicate to issue 69971

*** This issue has been marked as a duplicate of 69971 ***
Comment 3 christian.guenther 2007-01-15 17:09:46 UTC
I close the issue as duplicate.