LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How can I prevent multiple instances of Mplayer / Kmplayer? (https://www.linuxquestions.org/questions/linux-newbie-8/how-can-i-prevent-multiple-instances-of-mplayer-kmplayer-328976/)

vinbob 05-31-2005 03:11 PM

How can I prevent multiple instances of Mplayer / Kmplayer?
 
Hi All.

Firstly, I apologise for posting this again but I've had no response in the 'Software' section.


I'm running SuSE 9.3 and my preferred video player is Kmplayer.

Q. How can I stop a new instance of the player opening when launching a file from Konqueror, when the player is already open?

Also as an addition query, can anyone tell me how I can edit context menus?

Any help much appreciated..

Vin.

reddazz 05-31-2005 04:27 PM

Instead of posting a new thread, you need to bump your old thread if it hasn't recieved a response in 24 hours. I am not sure how you can prevent multiple instances of mplayer or kplayer, but kaffeine and totem have this feature. Unforunately you will need xine libs installed to use them because they don't use mplayer as a backend.

vinbob 06-01-2005 08:12 AM

Ah well..

Thanks for your reply reddazz.
I gave up in the end and I'm now using Kaffeine for video.
The thing I had against Kafeeine was that it didn't seem as stable as Mplayer, kept crashing on me. But I've updated Kaffeine now and it seems OK.

Cheers

oneandoneis2 06-01-2005 08:43 AM

You could create a shell script that checks all processes on the machine, and then either starts mplayer if it isn't running already, or returns an error if it IS. Then run the script instead of directly running mplayer.


All times are GMT -5. The time now is 02:06 PM.