Skip to content

Instantly share code, notes, and snippets.

Call for testing, new contact backend.
What does it change regarding UI/UX ?
The address book should be more performant.
The main addition is the ability to synchronize contacts with a remote server using cardDav protocol, available in settings or in the front page if no contact were found.
This should behaves like calendar app with a manual sync.
Also, we had to change the birthdays calendar and to create a new one, for this the old one has just been disabled.
@lduboeuf
lduboeuf / obex_pbap_newbackend_test.txt
Last active April 23, 2026 07:46
Test obex pbap with new backend
Pre-requisite: 24.04.2.x
#1: install dependencies
sudo ubports-qa install 24.04-2.x_-_PR_bluez_5
sudo ubports-qa install 24.04-2.x_-_PR_lomiri-addressbook-app_271
service:
https://ci.ubports.com/blue/organizations/jenkins/UBportsCore%2Flomiri-obex-call-data/detail/MR-1/4/artifacts
new contact db is populated after session login
@lduboeuf
lduboeuf / gist:9834dab03ac1a58f5b4a3b1864fbb8ef
Created December 10, 2025 16:28
devContainers example calendar-app
{
"name": "lomiri-calendar-app (Clickable IDE)",
"image": "clickable/amd64-utnext-amd64-ide:latest",
"remoteUser": "root",
"customizations": {
"vscode": {
"extensions": [
"ms-vscode.cpptools",
"ms-vscode.cmake-tools",
"twxs.cmake",
sudo mount -o remount,rw /
#gain rootfs space
sudo mount -t tmpfs none /var/cache/apt
sudo mount -t tmpfs none /var/lib/apt
#
for the volume control of alerts and alarms, what you meant by "PA role-based volume control for alarm" , the signification of "PA" i mean. which repo should i look at ?,
https://gitlab.com/ubports/development/core/ubuntu-touch-session/-/blob/main/touch.pa?ref_type=heads#L28
https://gitlab.com/ubports/development/core/ubuntu-touch-session/-/blob/main/touch-stream-restore.table?ref_type=heads
https://github.com/AyatanaIndicators/ayatana-indicator-sound/blob/main/src/volume-control-pulse.vala#L788-L791
https://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/Modules/#module-stream-restore
@lduboeuf
lduboeuf / gist:ac322d48a7dc464cc602685e3d1c0178
Last active August 30, 2024 11:00
Ubuntu 24.04, Lomiri, QtCreator, Calendar app demo
#install Lomiri
# see launchpad.net/~lomiri/+archive/ubuntu/builds
sudo apt install ssh
# dev: https://askubuntu.com/a/1407604
sudo apt install build-essential cmake pkg-config
sudo apt install qtbase5-dev
sudo apt install libqt5qml5
sudo apt install qt5-qmake
syncevolution --print-databases backend=caldav username=<username> password=<pwd> syncURL=https://<url>
syncevolution:
syncevolution --print-databases
syncevolution --remove-database backend=evolution-calendar database=f2636fba81f637f5591563e57913ca38cdd306d3
Buteo debug:
systemctl --user set-environment QT_LOGGING_RULES="buteo.*.debug=true"
systemctl --user restart msyncd.service
Account service:
sudo systemctl restart accounts-daemon.service
db: /home/phablet/.config/libaccounts-glib/accounts.db
@lduboeuf
lduboeuf / lte-battery-saver.py
Created September 26, 2023 13:16
LTE to GSM switcher
import os
import dbus
from gi.repository import GLib
from dbus.mainloop.glib import DBusGMainLoop
best_connectivity="lte"
lowest_connectivity="gsm"
sim_slot="/ril_0"
#logs
journalctl --user -f -u lomiri-app-launch--application-click--terminal.ubports_terminal_2.0.1--.service
sudo journalctl --boot --identifier=NetworkManager
# mount rw
sudo mount -o remount,rw /
# restart lomiri
systemctl --user restart lomiri-full-greeter.service
#debug glogs:
systemctl --user set-environment G_MESSAGES_DEBUG=all