Removes the lock screen media controls GNOME 49 introduced with no way to disable. ALSO if you're on Fedora 43 like me, or another distro that has implemented auto-pausing of media when you lock your screen, and interested in disabling it do this: mkdir -p ~/.config/wireplumber/wireplumber.conf.d echo 'wireplumber.settings = { linking.pause-playback = false }' > ~/.config/wireplumber/wireplumber.conf.d/99-disable-mpris-pause.conf systemctl --user restart wireplumber pipewire To undo it simply remove the file you created above and re-run the restart command.
Note: Binary files aren't shown on the web site. To see all files, please download the extension zipfile.
| Version | Status |
|---|---|
| 2 | Active |
| 1 | Rejected |
1. Is this even work? Because the extension will be disabled on lock screen: [Extensions Guide: session modes](https://gjs.guide/extensions/topics/session-modes.html) 2. You are modifying `UnlockDialog` functions (line 20, 26, 28, 31 `extension.js`) and that would never return to original after disable: [EGO Review Guidelines: Cleanup](https://gjs.guide/extensions/review-guidelines/review-guidelines.html#general-guidelines) If you need any help with your extension you can ask us on: - [GNOME Extensions Matrix Channel](https://matrix.to/#/#extensions:gnome.org) - IRC Bridge: irc://irc.gimpnet.org/shell-extensions
Btw, this extension is not compatible with 43: [Port Guide 45: ESM](https://gjs.guide/extensions/upgrading/gnome-shell-45.html#esm) Also, please don't send extensions here without proper testing.
I wrote it for myself and decided to share for other people. I can change the version, no problem. I just copied the manifest from one of my other extensions and forgot about it (I have validation off). Otherwise, it works for me. It removes the video controls on lock screen (for example if you're playing a youtube video, or a song in your audio player etc.). That's what it does. Not sure what the other things you typed mean exactly. 1. I don't know if the extension is disabled or not on lock screen, but the media controls are gone when you lock and the extension stays enabled in Extensions Manager. That's all that matters to me. 2. This one I don't get well enough. I need better clean-up, so that existing UnlockDialog instances are restored? I'm not sure how UnlockDialog works or what it is even to be honest. I saw a post on GitLab pointing to the code responsible for the lock screen media controls and wrote code to "neutralize" it: https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/main/js/ui/unlockDialog.js#L56-63
And yes when I disable the extension and lock the screen again, the controls appear again. I tested that. The notifications (in case they could be affected by this) still work when you click them etc.
Ok. Tested on a VM and seems to be working without unlock session modes. Please send it with 49 shell version. Btw, this is something that should be fixed on 49.1 but it seems still doesn't work for web browsers: https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3896
Alright. Will do. Btw I'm 49.1 (just installed Fedora 43 today) and i get those lock screen media controls on a lot of things without enabling this. My flatpaked video players get them, my browser does etc. This really helps with privacy on my laptop when I bring it outside.
btw, this will be fixed on 49.2: https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3921
Ok great. Maybe I'll remove this when it comes out and hits the major distros.
It cannot be removed but you can inactivate it in your extension page when you want.