kpcyrd / spotify-launcher

Client for spotify's apt repository in Rust for Arch Linux
Other
192 stars 15 forks source link

[wayland/Hyprland] Having trouble getting spotify to launch #48

Closed dzuberi closed 3 months ago

dzuberi commented 3 months ago
[2024-07-12T21:31:32Z DEBUG spotify_launcher::config] Searching for configuration file at "/home/dzuberi/.config/spotify-launcher.conf"
[2024-07-12T21:31:32Z DEBUG spotify_launcher::config] Found configuration file at "/home/dzuberi/.config/spotify-launcher.conf"
[2024-07-12T21:31:32Z INFO  spotify_launcher::config] Loading configuration file at "/home/dzuberi/.config/spotify-launcher.conf"
[2024-07-12T21:31:32Z DEBUG spotify_launcher] Using install path: "/home/dzuberi/.local/share/spotify-launcher/install"
[2024-07-12T21:31:32Z DEBUG spotify_launcher::paths] Reading state file from "/home/dzuberi/.local/share/spotify-launcher/state.json"...
[2024-07-12T21:31:32Z DEBUG spotify_launcher::paths] Loaded state: Ok(State { version: "1:1.2.40.599.g606b7f29", last_update_check: SystemTime { tv_sec: 1720819884, tv_nsec: 814754648 } })
[2024-07-12T21:31:32Z DEBUG spotify_launcher] Last update check was 0 days and 0 hours ago
[2024-07-12T21:31:32Z INFO  spotify_launcher] No update needed
[2024-07-12T21:31:32Z DEBUG spotify_launcher] Assembled command: ["spotify"]
[0712/143132.323935:WARNING:main_runner.cc(261)] Alloy bootstrap is deprecated and will be removed in ~M127. See https://github.com/chromiumembedded/cef/issues/3685

I am on wayland (Hyprland), my spotify-launcher.conf is

extra_arguments = ["--enable-features=UseOzonePlatform", "--ozone-platform=wayland"]
kpcyrd commented 3 months ago

You are missing the [spotify] section header in your config file:

[spotify]
extra_arguments = ["--enable-features=UseOzonePlatform", "--ozone-platform=wayland"]

This line is giving away there's no arguments being passed:

[2024-07-12T21:31:32Z DEBUG spotify_launcher] Assembled command: ["spotify"]
dzuberi commented 3 months ago

Thank you, sorry for my ignorance. That worked.

kpcyrd commented 3 months ago

No problem, it's an honest mistake I'm glad it could be solved so easily. :)