pause-on-lock icon indicating copy to clipboard operation
pause-on-lock copied to clipboard

Pause-on-lock doesn't work after upgrading to Ubuntu 22.04 Jammy Jellyfish

Open adrianvg opened this issue 2 years ago • 2 comments

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?

adrianvg avatar Sep 28 '22 15:09 adrianvg

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

adrianvg avatar Sep 28 '22 15:09 adrianvg

Setting python manually to using python2 doesn't do anything either. Guessing the newer KDE version may have broken something?

2022-09-28_17-37-50

adrianvg avatar Sep 28 '22 15:09 adrianvg

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!

adrianvg avatar Feb 28 '23 17:02 adrianvg

I've updated my Kubuntu 22.04 LTS with some "official" plasma backports from the Plasma team.

This is what I run currently.

2023-02-28_18-33-53

adrianvg avatar Feb 28 '23 17:02 adrianvg