Ask Your Question

kill external program (Solved)

asked 2017-11-21 11:28:15 +0200

Pansmanser gravatar image

updated 2017-11-24 10:45:11 +0200

I am trying to play a random music selection in the background of a presentation in impress. Impress can play music of course, but not (I think) randomise the selection. So I call an external program (VLC) to start the music. This works.

Now I need to stop the music at a certain point in the presentation (end of slide 0). I have set a listener which gains control at the end of slide 0. How do I kill my external program to stop the music?

edit retag flag offensive close merge delete


Thanks, Mike. That's enabled me to write a small script to kill vlc. The problem has now shifted slightly as edited above.

Pansmanser gravatar imagePansmanser ( 2017-11-21 17:09:15 +0200 )edit

The edit should have been posted as an answer, not part of the question. It is perfectly fine to accept your own answer. In this case, I posted it for you.

Jim K gravatar imageJim K ( 2017-11-23 19:31:54 +0200 )edit

Thanks, Jim

Pansmanser gravatar imagePansmanser ( 2017-11-24 10:39:22 +0200 )edit

1 Answer

Sort by » oldest newest most voted

answered 2017-11-23 19:29:37 +0200

Jim K gravatar image

updated 2017-11-23 19:34:19 +0200

@Pansmanser wrote:

Thanks to Mike Kaganski I can now achieve this under certain circumstances. I 'shell' to "killall vlc" to stop the music. It works perfectly when the slide show is running in 'Window' (Slide Show Settings - Type - Window; in this form the slide show runs within the Impress process and window already active).

When the show runs in 'Default' (which makes it run in a separate process and a detached window), it stops working. This is a different issue and I have opened a different question here

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2017-11-21 11:28:15 +0200

Seen: 110 times

Last updated: Nov 24 '17