Skip to content

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

@StayPirate

Description

@StayPirate

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions