Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spotify doesn't set app_id attribute when runs on Wayland #10

Open
StayPirate opened this issue Jul 8, 2024 · 0 comments
Open

Spotify doesn't set app_id attribute when runs on Wayland #10

StayPirate opened this issue Jul 8, 2024 · 0 comments

Comments

@StayPirate
Copy link
Owner

Description

Spotify only sets name attribute if started in Wayland, but that field changes when a new track is played. Hence, it cannot be used to track its window in script like 2ca84ae.

As soon as it starts:

              "name": "Spotify Premium",
              "window": null,
              "nodes": [],
              "floating_nodes": [],
              "focus": [],
              "fullscreen_mode": 0,
              "sticky": false,
              "pid": 1141275,
              "app_id": "",
              "visible": true,
              "max_render_time": 0,
              "shell": "xdg_shell",
              "inhibit_idle": false,
              "idle_inhibitors": {
                "user": "fullscreen",
                "application": "none"
              }

once a track starts playing

              "name": "Meganoidi - Zeta reticoli",
              "window": null,
              "nodes": [],
              "floating_nodes": [],
              "focus": [],
              "fullscreen_mode": 0,
              "sticky": false,
              "pid": 1141275,
              "app_id": "",
              "visible": true,
              "max_render_time": 0,
              "shell": "xdg_shell",
              "inhibit_idle": false,
              "idle_inhibitors": {
                "user": "fullscreen",
                "application": "none"
              }

Solution

I need to investigate to understand how to set a static app_id value.

Additional info

❯ flatpak info com.spotify.Client

Spotify - Online music streaming service

          ID: com.spotify.Client
         Ref: app/com.spotify.Client/x86_64/stable
        Arch: x86_64
      Branch: stable
     Version: 1.2.37.701.ge66eb7bc
     License: LicenseRef-proprietary=https://www.spotify.com/us/legal/end-user-agreement/
      Origin: flathub
  Collection: org.flathub.Stable
Installation: user
   Installed: 17.3 MB
     Runtime: org.freedesktop.Platform/x86_64/23.08
         Sdk: org.freedesktop.Sdk/x86_64/23.08

      Commit: 636d85b350ab6c1e9dc2d259d8305aa5274f8d8ea192ee27a25f7bdb1bcbd155
      Parent: 9eb82ec8c70583f08d33590430ec1f5261c4f1105522e2b00bb209e9bc7b7fc1
     Subject: Update 2 modules (c006dfbd)
        Date: 2024-05-31 15:07:04 +0000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant