Skip to content

Commit

Permalink
Rework dbus naming conventions to be more friendly with sandboxed
Browse files Browse the repository at this point in the history
environments.

- XAppStatusIcon users will own the name 'org.x.StatusIcon.progname".
  This can also be specified using xapp_status_icon_set_name(), to
  assign a particular name, as long as there are 4 parts to the name
  in total.
- Each app process will have a GDBusObjectManagerServer singleton
  to expose individual icon objects (this keeps the ability to have
  multiple status icons from a single process, something xapp-sn-
  watcher must have). The server is created when the first icon is
  added, and destroyed when the last is removed.
- XAppStatusIconMonitors will host a matching object manager client
  for each status icon process it connects with.

This simplifies accounting of icons, as the managers take over
add/remove notifications and proxy creation - we really only need
to keep track of the managers themselves and react to them.

Minor changes to status applets are required to ensure the visual
representations are tracked correctly. Previously, each icon had
a matching unique name on the bus. This name was used as the
identifier to keep track of proxies. Now, there is one name per
process, so the object path will be appended also, to insure
uniqueness.
  • Loading branch information
mtwebster committed Aug 28, 2020
1 parent e1607a2 commit f6db3f7
Show file tree
Hide file tree
Showing 6 changed files with 325 additions and 270 deletions.
32 changes: 0 additions & 32 deletions libxapp/g-codegen.py

This file was deleted.

Loading

0 comments on commit f6db3f7

Please sign in to comment.