Jas-SinghFSU / HyprPanel

A Bar/Panel for Hyprland with extensive customizability.
MIT License
816 stars 56 forks source link

autohide media widget not working #267

Open rishav12s opened 1 month ago

rishav12s commented 1 month ago

The autohide option is enabled and was working fine few days when no media was playing it automatically hid itself like it should

but it shows unknown title etc and doesnt hide it stays persistent until i restart ags or reload to change theme

240917_00h40m37s_screenshot 240917_00h40m53s_screenshot 240917_00h42m40s_screenshot

Jas-SinghFSU commented 1 month ago

Hmm, nothing has changed in the component. I wonder if we need to improve the filter to check that the remaining players are valid rather than just check if there are none at all.

Seems that in your case there is a media player with unknown values. Can you look into what's open in your PC when you get this?

Jas-SinghFSU commented 1 month ago

When that happens can you run this command please? And share the output:

busctl --user list | grep org.mpris.MediaPlayer2 | awk '{print $1}'
rishav12s commented 1 month ago

now today i woke and tried to replicate this so that i could run the command and guess what its fixed on its own lol

this is the thing with linux things get broken and fixed on their own

ig you can keep this open for a while if this happens again i'll report it here

Jas-SinghFSU commented 1 month ago

Lol, sounds good.

smathles commented 1 month ago

This actually turned up for me today, though I don't have autohide enabled.

❯ busctl --user list | grep org.mpris.MediaPlayer2 | awk '{print $1}'
org.mpris.MediaPlayer2.firefox.instance_1_832
org.mpris.MediaPlayer2.plasma-browser-integration
org.mpris.MediaPlayer2.playerctld

image

Still shows this even when I close firefox/spotify/whatever. I honestly thing I could fix this by restarting ags/laptop/whatever, but it would be nice to know why this is happening.

Jas-SinghFSU commented 1 month ago

This actually turned up for me today, though I don't have autohide enabled.

❯ busctl --user list | grep org.mpris.MediaPlayer2 | awk '{print $1}'
org.mpris.MediaPlayer2.firefox.instance_1_832
org.mpris.MediaPlayer2.plasma-browser-integration
org.mpris.MediaPlayer2.playerctld

Still shows this even when I close firefox/spotify/whatever. I honestly thing I could fix this by restarting ags/laptop/whatever, but it would be nice to know why this is happening.

@smathles It looks like Firefox is being recognized as an active player here?

smathles commented 1 month ago

@Jas-SinghFSU Yeah, it registers FF as an active player. The issue I was experiencing was when FF was playing, yet it still returned "unknown title" etc in the actual widget.

Only has happened once IIRC, might just be a firefox thing tbh.