systray - make notes of the freedekstop.org version of protocol

there is an FDO version of this. it seems it's not widely supported
but the org.kde is. at some point we probbably have to move over but
for now there isn't a need, but make note of this and have DOMAIN able
to switch in a heartbeat if we want to.
devs/bu5hm4n/netstart_fixes
Carsten Haitzler 2 years ago
parent c1a8ae187e
commit 72bb408f48
  1. 6
      src/modules/systray/e_mod_notifier_host.c
  2. 6
      src/modules/systray/e_mod_notifier_host_dbus.c
  3. 5
      src/modules/systray/e_mod_notifier_host_private.h
  4. 6
      src/modules/systray/e_mod_notifier_watcher.c

@ -1,10 +1,10 @@
#include "e_mod_notifier_host_private.h"
#define WATCHER_BUS "org.kde.StatusNotifierWatcher"
#define WATCHER_BUS DOMAIN".StatusNotifierWatcher"
#define WATCHER_PATH "/StatusNotifierWatcher"
#define WATCHER_IFACE "org.kde.StatusNotifierWatcher"
#define WATCHER_IFACE DOMAIN".StatusNotifierWatcher"
#define ITEM_IFACE "org.kde.StatusNotifierItem"
#define ITEM_IFACE DOMAIN".StatusNotifierItem"
const char *Category_Names[] = {
"unknown", "SystemServices", NULL

@ -1,10 +1,10 @@
#include "e_mod_notifier_host_private.h"
#define WATCHER_BUS "org.kde.StatusNotifierWatcher"
#define WATCHER_BUS DOMAIN".StatusNotifierWatcher"
#define WATCHER_PATH "/StatusNotifierWatcher"
#define WATCHER_IFACE "org.kde.StatusNotifierWatcher"
#define WATCHER_IFACE DOMAIN".StatusNotifierWatcher"
#define ITEM_IFACE "org.kde.StatusNotifierItem"
#define ITEM_IFACE DOMAIN".StatusNotifierItem"
#define HOST_REGISTRER "/bla" //TODO check what watcher expect we send to him

@ -1,5 +1,10 @@
#include "e_mod_main.h"
// eventually we need to support this too...
// https://www.freedesktop.org/wiki/Specifications/StatusNotifierItem
//#define DOMAIN "org.freedesktop"
#define DOMAIN "org.kde"
typedef enum {
CATEGORY_UNKNOWN = 0,
CATEGORY_SYSTEM_SERVICES,

@ -1,11 +1,11 @@
#include "e_mod_notifier_host_private.h"
#define PATH "/StatusNotifierWatcher"
#define IFACE "org.kde.StatusNotifierWatcher"
#define IFACE DOMAIN".StatusNotifierWatcher"
#define PROTOCOL_VERSION 1
#define ERROR_HOST_ALREADY_REGISTERED "org.kde.StatusNotifierWatcher.Host.AlreadyRegistered"
#define ERROR_ITEM_ALREADY_REGISTERED "org.kde.StatusNotifierWatcher.Item.AlreadyRegistered"
#define ERROR_HOST_ALREADY_REGISTERED DOMAIN".StatusNotifierWatcher.Host.AlreadyRegistered"
#define ERROR_ITEM_ALREADY_REGISTERED DOMAIN".StatusNotifierWatcher.Item.AlreadyRegistered"
static Eldbus_Connection *conn = NULL;
static Eldbus_Service_Interface *iface = NULL;

Loading…
Cancel
Save