Skip to content

Instantly share code, notes, and snippets.

/etc/xdg/ubuntu-push-client/config.json
log_level to debug
Add this env var to the exe
QT_LOGGING_RULES=qt.qml.binding.removal.info=true
@lduboeuf
lduboeuf / gist:6c4b1177d0984297ed6818c2521f78b8
Last active February 6, 2024 10:18
Test UT push notif
monitor Notifs:
dbus-monitor interface=org.freedesktop.Notifications
gdbus call --session --dest com.ubuntu.Postal --object-path /com/ubuntu/Postal/dekko2_2edekkoproject --method com.ubuntu.Postal.Post dekko2.dekkoproject_dekko \
'"{\"message\": \"foobar\", \"notification\":{\"card\": {\"summary\": \"yes\", \"body\": \"hello\", \"popup\": true, \"persist\": true}}}"'
Avec son:
gdbus call --session --dest com.ubuntu.Postal --object-path /com/ubuntu/Postal/dekko2_2edekkoproject --method com.ubuntu.Postal.Post dekko2.dekkoproject_dekko \
'"{\"message\": \"foobar\", \"notification\":{\"sound\": \"test.ogg\",\"card\": {\"summary\": \"yes\", \"body\": \"hello\", \"popup\": true, \"persist\": true}}}"'
@lduboeuf
lduboeuf / gist:6318ee3eb4b3cb63645b017e99e9a33b
Last active March 16, 2022 15:40
Music app issue on import
Music app can't play imported file.
The File is well copied but no entry in MediaStore db.
watch inotify events:
inotifywait -rme modify,attrib,move,close_write,create,delete,delete_self /home/phablet/Music/Imported/2021/09/03
QFile::rename + QFile::copy ( actual content-hub code contentItem.cpp/move method )
/home/phablet/Music/Imported/2021/09/03/ CREATE 094451-pikatchu.wav
/home/phablet/Music/Imported/2021/09/03/ MODIFY 094451-pikatchu.wav
/home/phablet/Music/Imported/2021/09/03/ MODIFY 094451-pikatchu.wav
ssh into device
sudo mount -o rw,remount /
cd /usr/share/unity8/....
sudo nano ....
restart unity8
@lduboeuf
lduboeuf / log debug ofono Ubuntu Touch
Last active December 9, 2022 16:33
ofono debug logs Ubuntu Touch
[XENIAL]
debug ofono:
sudo mount -o remount,rw /
sudo service ofono stop
Add `-d *` to the exec line in /etc/init/ofono.override => `exec ofonod -d *`
sudo service ofono start
It logs to `syslog`
If not possible to edit `ofono.override`,
@lduboeuf
lduboeuf / test ofono dial
Last active June 15, 2020 22:18
test ofono dial fail
#this test fails on my N5 devel:
#Pre-requisit: access UT device on terminal ( adb or ssh )
#lanch this commands in UT:
#check the "object path" property from:
dbus-send --system --print-reply --dest=org.ofono / org.ofono.Manager.GetModems
#WARNING: those commands effectively interact with modem and trigger a call/hangup
Suru Design guidelines: https://snwh.org/
@lduboeuf
lduboeuf / way 0: Running QtCreator inside clickable image
Last active April 11, 2020 21:34
Import Ubuntu.Component to workspace ( code completion in qtcreator ) - cross platform
https://github.com/lduboeuf/ut-qtcreator
@lduboeuf
lduboeuf / Dockerfile
Created July 6, 2019 13:07
QtCreator in clickable container 2
FROM clickable/ubuntu-sdk:16.04-amd64
RUN apt-get update && apt-get install -y git qtcreator libxrender1 gdb
CMD ["/usr/bin/qtcreator"]