PureOS store has 2 versions: Bleachbit and Bleachbit (as Root). I chose the non-root version, but root version also installed as a separate app. The root version failed to launch…maybe because the default L5 account is non-root.
Odd: apt search “.*bleachbit.*” finds only a single entry:
$ sudo apt search '.*bleachbit.*'
Full Text Search... Done
bleachbit/amber 2.0-3 all
delete unnecessary files from the system
… so I wonder where the store is finding “BleachBit (as root)”. Anyway, after “sudo apt install bleachbit”, I too see both regular & root versions in the App Drawer, and like you I found the root version never launched. Digging a bit:
When I open a terminal & run “bleachbit”, it works fine, but with “pkexec bleachbit”, a GUI password prompt (for user “purism”) is presented, and my login credential is accepted, but it nevertheless errors out with “Could not open X display”. Setting environment variables WAYLAND_DISPLAY=wayland-0 and DISPLAY=:0 does not change anything. I get the same error with “sudo bleachbit”, but that’s no surprise: https://bugzilla.redhat.com/show_bug.cgi?id=1274451#c33 says “there are currently no plans to support running graphical apps with sudo under Wayland, and it seems quite unlikely that this will change anytime soon”.
“You know, I’m all about that quack, about that quack - no ring-tone…” [with apologies to ms.Trainor]
Is this silent alarm only duck related or can you get audio alarms from other sources, apps? Alarm clock?
Here’s a non-GUI application that functions well: ProtonMail Bridge.
I got ProtonMail Bridge running on the Pinephone and was able to sync with Geary and Evolution. If someone who already has their phone could confirm it works for the L5, that would be appreciated. Bridge seems to be fully functional. It’s not officially supported for arm64 and you won’t find it packaged in any repositories, but cloning the source and building with GOARCH=arm64 make build-nogui works without any problems once you have the build toolchain. The resulting binary can be run with protonmail-bridge & to run as a background process or protonmail-bridge -c for CLI configuration.
env | grep '^DISPLAY=' >/dev/null || export DISPLAY=:0 # it’s not set for ssh sessions
sudo apt install x11-xserver-utils # to get xhost
xhost si:localuser:root # grant temporary priv to root
xhost -si:localuser:root # revoke temporary priv from root
If what is above works, then you could change the Exec=pkexec bleachbit line in /usr/share/applications/bleachbit-root.desktop to this: Exec=sh -c 'xhost si:localuser:root && sudo bleachbit && xhost -si:localuser:root'