Ask Your Question
0

kill external program (Solved) [closed]

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

Pansmanser gravatar image

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

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 reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Alex Kemp
close date 2021-02-07 21:30:28.737470

Comments

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 +0100 )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 +0100 )edit

Thanks, Jim

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

1 Answer

Sort by » oldest newest most voted
0

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

Jim K gravatar image

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

@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 https://ask.libreoffice.org/en/questi....

edit flag offensive delete link more

Question Tools

1 follower

Stats

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

Seen: 181 times

Last updated: Nov 24 '17