Skip to content

Make the native part more portable #10

@ao2

Description

@ao2

Hi,

is the restriction to linux given by the inotify dependency?

If so, a possible approach to make the native connector more portable could be to use Gio from Glib, and in particular the GFileMonitor API https://developer.gnome.org/gio/stable/GFile.html#g-file-monitor-directory AFAIU this will use different backends depending on the system (e.g. inotify on linux) and fall back to polling if there is not a native one for the system.

An example of a native connector using Gio is the chrome-gnome-shell extension: https://github.com/GNOME/chrome-gnome-shell/tree/master/connector

I also noticed that chrome-gnome-shell installs the native part of the extension in $PREFIX/bin, any idea if this is the standard practice?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions