Skip to content

DBus API for visibility and device name #94

@aecsocket

Description

@aecsocket

Description

I'm working on a GNOME shell extension to control Packet from the Quick Settings menu in this repo. Currently this just provides a button to open the Packet app. But to properly fix #53, the quick toggle button should toggle the device's visibility through Packet.

To achieve this I need some kind of API to Packet for enabling/disabling visibility. Ideally I would also like to have some API to fetch what the current device name is, as configured in the preferences, so I can show it in the subtitle.

IMO the best way to achieve this is for Packet to export a DBus object and interface:

  • a signal for the current visibility - when the user changes it in the app, I want to reflect that in the QS tile
  • a method for enabling/disabling visibility
  • a signal for the current device name

From there, using DBus from Gnome JS is relatively easy.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions