Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 848948 - media-sound/spotify x-scheme-handler/spotify mime type handler open a new instance of spotify instead of using existing
Summary: media-sound/spotify x-scheme-handler/spotify mime type handler open a new ins...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: Matthew Thode ( prometheanfire )
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2022-06-01 07:52 UTC by Henry paradiz
Modified: 2022-08-19 04:53 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Henry paradiz 2022-06-01 07:52:01 UTC
x-scheme-handler/spotify mime type handling will trigger the desktop file for the Spotify app registered in the window manager which launches a new instance of Spotify instead of using the existing instance

Reproducible: Always

Steps to Reproduce:
1.Open a Spotify link
Actual Results:  
A new instance of Spotify is launched

Expected Results:  
Existing instance should open the link.

Spotify has a way to communicate links by using dbus 

I have made a proposed fix here:

https://github.com/gentoo/gentoo/pull/25636
Comment 1 Larry the Git Cow gentoo-dev 2022-08-19 04:52:23 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eca6df2ed20259a990b29b59f3548ff5766053e2

commit eca6df2ed20259a990b29b59f3548ff5766053e2
Author:     Henry Paradiz <henry.paradiz@gmail.com>
AuthorDate: 2022-05-26 05:33:01 +0000
Commit:     Matthew Thode <prometheanfire@gentoo.org>
CommitDate: 2022-08-19 04:52:15 +0000

    media-sound/spotify: wrapper script should send spotify links with dbus to already running spotify instance
    
    Bug: https://bugs.gentoo.org/848948
    Signed-off-by: Henry Paradiz <henry.paradiz@gmail.com>
    Signed-off-by: Matthew Thode <prometheanfire@gentoo.org>

 media-sound/spotify/files/spotify-wrapper | 45 ++++++++++++++++++++-----------
 1 file changed, 30 insertions(+), 15 deletions(-)