kpcyrd / spotify-launcher

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

Spotify doesn't launch #49

Closed SneznyKocur closed 1 month ago

SneznyKocur commented 1 month ago

I'm running arch with plasma X11 or hyprland (this happens on both) When i run spotify-launcher -v it returns:

[2024-07-20T15:24:25Z DEBUG spotify_launcher::config] Searching for configuration file at "/home/sneznykocur/.config/spotify-launcher.conf"
[2024-07-20T15:24:25Z DEBUG spotify_launcher::config] Searching for configuration file at "/etc/spotify-launcher.conf"
[2024-07-20T15:24:25Z INFO  spotify_launcher::config] No configuration file found, using default config
[2024-07-20T15:24:25Z DEBUG spotify_launcher] Using install path: "/home/sneznykocur/.local/share/spotify-launcher/install"
[2024-07-20T15:24:25Z DEBUG spotify_launcher::paths] Reading state file from "/home/sneznykocur/.local/share/spotify-
launcher/state.json"...
[2024-07-20T15:24:25Z DEBUG spotify_launcher::paths] Loaded state: Ok(State { version: "1:1.2.40.599.g606b7f29", last_update_check: SystemTime { tv_sec: 172
1423266, tv_nsec: 515840931 } })
[2024-07-20T15:24:25Z DEBUG spotify_launcher] Last update check was 0 days and 18 hours ago
[2024-07-20T15:24:25Z INFO  spotify_launcher] No update needed
[2024-07-20T15:24:25Z DEBUG spotify_launcher] Assembled command: ["spotify"]

but nothing happens after and it just closes I also tried spotify from the AUR where the same thing happens I ran spotify --show-console --debug-level [0-8] (i tried all of the levels) and it returns nothing and doesn't open

kpcyrd commented 1 month ago

For Hyperland there's documented solutions in the issue tracker, see e.g. #48

SneznyKocur commented 1 month ago

But the same happens on plasma x11 so wayland is not the issue

Dňa po 22. 7. 2024, 8:02 PM kpcyrd @.***> napísal(a):

For Hyperland there's documented solutions in the issue tracker, see e.g.

48 https://github.com/kpcyrd/spotify-launcher/issues/48

— Reply to this email directly, view it on GitHub https://github.com/kpcyrd/spotify-launcher/issues/49#issuecomment-2243519074, or unsubscribe https://github.com/notifications/unsubscribe-auth/A2RWJCK7NNG3CXBEJW6H2UTZNVCKZAVCNFSM6AAAAABLIG5XJ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENBTGUYTSMBXGQ . You are receiving this because you authored the thread.Message ID: @.***>

kpcyrd commented 1 month ago

It's kind of on you to provide an desktop environment the spotify binary can run on, it seems the launcher itself has worked for you but please do post the solution if you figure out what the problem was.

SneznyKocur commented 1 month ago

It has worked in the past farly recently but after a restart it does not launch anymore (in the same environment)

xrtxn commented 1 month ago

Do you have a polkit authentication agent running? For me the issue is that the launcher doesn't use my agent on hyprland, but it works in kde plasma wayland.

xrtxn commented 1 month ago

I confirmed that the issue was caused by spotify not spotify-launcher. I got these weird dbus errors:

(spotify:18164): libayatana-appindicator-WARNING **: 23:16:18.458: Unable to get the session bus: Unknown or unsupported transport “disabled” for address “disabled:”

(spotify:18164): LIBDBUSMENU-GLIB-WARNING **: 23:16:18.458: Unable to get session bus: Unknown or unsupported transport “disabled” for address “disabled:”

It turns out it was caused by this configuration line which launched supposedly dbus: exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP This line was suggested by the wiki, but it is bad. My solution was to edit /usr/share/wayland-sessions/hyprland.desktop Exec line like: Exec=dbus-run-session Hyprland After this my problem disappeared.

SneznyKocur commented 1 month ago

okay im just dumb, i rm -rf'ed ~/.cache/spotify and now it starts fine