pause-on-lock
pause-on-lock copied to clipboard
Pause-on-lock doesn't work after upgrading to Ubuntu 22.04 Jammy Jellyfish
Describe the bug Pause-on-lock doesn't work anymore after upgrading to Ubuntu 22.04 Jammy Jellyfish.
Expected behavior The OS upgrade shouldn't disable/remove/uninstall any user pref's, yet it did.
System information:
- OS [e.g. Ubuntu 18.04]: Ubuntu 22.04.1
- Desktop Environment [e.g. GNOME, Unity, ...]: KDE
- pause-on-lock version [e.g. 1.4 or git master branch]: Master branch
Will investigate some more. Maybe it's just an issue of reinstalling this code again, even though it's worrisome the upgrade removes(??) user features without a warning.
Update: I use pause-on-lock with Spotify. Also, reinstalling pause-on-lock didn't do anything.
Any ideas on how to proceed?
root@lanfear2:~# update-alternatives --config python
There are 2 choices for the alternative python (providing /usr/bin/python).
Selection Path Priority Status
------------------------------------------------------------
* 0 /usr/bin/python3.10 3 auto mode
1 /usr/bin/python2.7 2 manual mode
2 /usr/bin/python3.10 3 manual mode
Press <enter> to keep the current choice[*], or type selection number:
root@lanfear2:~# python -V
Python 3.10.6
Setting python manually to using python2 doesn't do anything either. Guessing the newer KDE version may have broken something?
Tinkered around some more and it does work, but with these gotchas'!
You need both playerctl and the pause-on-lock-code installed and running. Playerctl can be installed with "apt install playerctl" and then started daemonised with "playerctl daemon". Pause-on-lock is added to the autostart-menu on my Kubuntu-install as a login-script.
I found the somewhat obscure reference to playerctl at https://www.linuxuprising.com/2019/08/pause-music-when-locking-screen-and.html.
Having Spotify playing something or other and then pressing Meta-L to lock the screen, pauses the play.
All is A-okay now. HTH.
Issue may be closed!
I've updated my Kubuntu 22.04 LTS with some "official" plasma backports from the Plasma team.
This is what I run currently.