LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-25-2018, 07:37 AM   #1
linustalman
Senior Member
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 10 (Buster) x64
Posts: 4,190

Rep: Reputation: 440Reputation: 440Reputation: 440Reputation: 440Reputation: 440
Question How to allow only one instance of mpv?


Hi.

How can I allow only 1 instance of mpv just like the way VLC allows?

Must the tweak be added to '.config/mpv/mpv.conf'?

Thanks. 🎅

Last edited by linustalman; 12-25-2018 at 07:40 AM.
 
Old 12-26-2018, 01:38 AM   #2
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 20 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2909Reputation: 2909Reputation: 2909Reputation: 2909Reputation: 2909Reputation: 2909Reputation: 2909Reputation: 2909Reputation: 2909Reputation: 2909Reputation: 2909
It appears not. You could try playing around with the script linked to on this thread though:

https://github.com/mpv-player/mpv/issues/4954
 
Old 12-26-2018, 06:59 AM   #3
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 15,337

Rep: Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033
I found something called mpv_wrapper.sh, but actually this will simply kill the running instance. If you wish you can implement something similar (or just does not allow to run it if was already running). But mpv itself does not take care about it at all.
 
Old 12-26-2018, 09:07 AM   #4
linustalman
Senior Member
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 10 (Buster) x64
Posts: 4,190

Original Poster
Rep: Reputation: 440Reputation: 440Reputation: 440Reputation: 440Reputation: 440
Post

It seems like more trouble than it's worth for such a basic feature. VLC will remain my primary media player. I use mpv the odd time.
 
  


Reply

Tags
mpv, single instance


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Only one instance of bash script... cmfarley19 Programming 11 01-13-2018 04:41 AM
[SOLVED] [INF] Still recommending mpv-0.27 after new mpv release and -current update 1337_powerslacker Slackware 16 12-31-2017 01:17 AM
Can't ping or ssh to the cirros instance of the openstack instance visuharsha Linux - Networking 0 12-21-2017 01:44 PM
Postfix multiple instance only default instance work Dante K Linux - Server 0 09-05-2017 09:45 AM
[SOLVED] Switch to instance instead of creating a new instance of a program javascriptninja Linux - Newbie 8 01-28-2012 03:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration