Bug 441256

Summary: Feature request: switch to force single instance
Product: [Applications] Haruna Reporter: Luigi Baldoni <aloisio>
Component: genericAssignee: george fb <georgefb899>
Status: RESOLVED FIXED    
Severity: normal CC: beavailable, edgar.serrano.9803, freezeball, sandfox+kde
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Luigi Baldoni 2021-08-20 17:29:16 UTC
of the application.
Comment 1 Axel 2022-09-16 13:41:38 UTC
So this place is a bit confusing, hope this is the right place to comment. I would like to politely add my support behind this request as well, to expand a bit: have an option to reuse the current instance and replace the playlist instead of opening a new window when opening a file from Dolphin, this is the default behaviour on most video players.
Comment 2 Luigi Baldoni 2022-09-16 16:16:56 UTC
(In reply to Axel from comment #1)
> a bit: have an option to reuse the current instance and replace the playlist
> instead of opening a new window when opening a file from Dolphin, this is
> the default behaviour on most video players.

I do something like that via qdbus, perhaps you could create a script to that effect.
Comment 3 Axel 2022-09-20 17:39:48 UTC
(In reply to Luigi Baldoni from comment #2)
> (In reply to Axel from comment #1)
> > a bit: have an option to reuse the current instance and replace the playlist
> > instead of opening a new window when opening a file from Dolphin, this is
> > the default behaviour on most video players.
> 
> I do something like that via qdbus, perhaps you could create a script to
> that effect.

Could you provide the details?
Comment 4 Luigi Baldoni 2022-09-21 08:30:59 UTC
(In reply to Axel from comment #3)
> (In reply to Luigi Baldoni from comment #2)
> > (In reply to Axel from comment #1)
> > > a bit: have an option to reuse the current instance and replace the playlist
> > > instead of opening a new window when opening a file from Dolphin, this is
> > > the default behaviour on most video players.
> > 
> > I do something like that via qdbus, perhaps you could create a script to
> > that effect.
> 
> Could you provide the details?

With things like
>  qdbus org.mpris.MediaPlayer2.haruna /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.OpenUri "$1"
>  qdbus org.mpris.MediaPlayer2.haruna /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Play

You can probably use qdbusviewer to see which methods are available.
Comment 5 Axel 2022-09-21 23:13:20 UTC
Thank you
Comment 6 freeze_ball 2023-05-18 01:12:30 UTC
Bumping the request as it is the only thing stopping me to switching to Haruna.
Comment 8 Axel 2023-08-21 13:29:06 UTC
Awesome, thanks a lot!