8000 Support .desktop DBus activation instead of IPC? · Issue #8598 · qutebrowser/qutebrowser · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Support .desktop DBus activation instead of IPC? #8598
Open
@The-Compiler

Description

@The-Compiler

Many applications (particularly in GNOME) are following the pattern
lately that there is only ever one instance of the application running.
This was done back in the day with things like libunique, but we grew
some more advanced ways of doing this lately (like GApplication).

When the second instance of the application gets started (by running the
executable) then the second instance notices that there is already a
first copy running. It then sends a D-Bus message to that first
instance saying "please open a new window" (or whatever) and exits.

The idea here is to avoid having to fork()/exec() and fully dynamic-link
this second copy of the process in order to send a D-Bus message and
immediately exit when (most probably) the process doing the launching is
already on D-Bus to begin with and perfectly capable of sending the
message for itself.

So if qutebrowser supported this, and people use a compatible launcher (e.g. Rofi and maybe xdg-open too?), the often cited "launching a second qutebrowser instance is too slow" issue would vanish without the hacks people often have with wrapper scripts and such.

Metadata

Metadata

Assignees

No one assigned

    Labels

    component: ipcIssues related to communication between processes.priority: 1 - middleIssues which should be done at some point, but aren't that important.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0