Skip to content
  • Philip Langdale's avatar
    nautilus-application: Publish window->location mappings · a1751d3d
    Philip Langdale authored
    This is a reworking of a long standing Ubuntu patch that publishes
    the set of locations open in each Nautilus window. The motivation
    for this change is that a desktop environment providing special
    icons for things like removable devices and the trash can match
    windows to those icons for highlighting purposes.
    
    In the original incarnation, Unity provided these icons. In today's
    world, I'm maintaining a set of patches for dash-to-dock/ubunut-dock
    that provide these icons too.
    
    The original implementation uses Xids to identify windows, but Xids
    aren't a thing in Wayland so this mechanism is a dead end. Instead,
    we can use the 'gtk application window object paths' which are
    published over dbus by GtkApplications, including Nautilus.
    
    Mutter already detects these, and makes them available on MetaWindows.
    
    The original patch added the mapping property to the fileManager1
    interface, and I have left that part as-is, but it's likely not to
    be the right place ...
    a1751d3d