Bug 441256 - Feature request: switch to force single instance
Summary: Feature request: switch to force single instance
Status: RESOLVED FIXED
Alias: None
Product: Haruna
Classification: Applications
Component: generic (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: george fb
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-08-20 17:29 UTC by Luigi Baldoni
Modified: 2023-08-21 13:29 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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!