util_daemon_is_legacy


Description:


public async bool util_daemon_is_legacy (Client client, Cancellable? cancellable) throws Error

Ask whether the daemon owning the name is a GPaste 45 or 50, which serves an interface of its own rather than this one: what a package update leaves running until the session ends, and what a client of this version can never reach (g_paste_util_reexecute_legacy_daemon ()).

The daemon's path is asked what it serves: GDBus answers an unknown method alike for such a daemon and for a current one that owns the name but has yet to export anything.

Parameters:

client

a Client

cancellable

a Cancellable

callback

called with the answer

user_data

data for callback


Namespace: GPaste
Package: gpaste-3