Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • D developer.puri.sm
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar

Due to an influx of spam, we have had to impose restrictions on new accounts. Please see this wiki page for instructions on how to get full permissions. Sorry for the inconvenience.

  • David Boddie
  • developer.puri.sm
  • Wiki
  • D Bus examples

D Bus examples · Changes

Page history
Add a gdbus equivalent to the Python program for reading an SMS. authored Jun 17, 2019 by David Boddie's avatar David Boddie
Hide whitespace changes
Inline Side-by-side
D-Bus-examples.md
View page @ 7616506a
......@@ -81,7 +81,13 @@ gdbus introspect --session --dest sm.puri.OSK0 --object-path /sm/puri/OSK0
The two useful methods are `SetVisible` and `GetVisible`, each of which respectively accepts and returns a boolean value.
If you have already sent an SMS, get its details with this Python program:
If you have already sent an SMS, get its details with `gdbus`:
```
gdbus call --system --dest org.freedesktop.ModemManager1 --object-path /org/freedesktop/ModemManager1/SMS/0 \
--method org.freedesktop.DBus.Properties.GetAll org.freedesktop.ModemManager1.Sms
```
Alternatively, this Python program will do the same thing:
```python
import dbus
bus = dbus.SystemBus()
......
Clone repository
  • Changing the Phosh Wallpaper
  • D Bus examples
  • Debugging Python applications in flatpaks
  • Developer Documentation Overview
  • Devkit I2C Notes
  • Devkit notes
  • Documenting Applications
  • PyGObject Development Notes
  • Home