Re: Why does killing GS with SIGHUP crash on the 2nd time?



On Mon, Mar 4, 2013 at 7:16 PM, Marco Scannadinari
<marco scannadinari co uk> wrote:
How can I pass global.reexec_self() to org.gnome.Shell? Sorry, I have
little to no (g)dbus experience.

Ignoring any error handling:

from gi.repository import Gio, GLib

proxy = Gio.DBusProxy.new_for_bus_sync(
        Gio.BusType.SESSION,
        Gio.DBusProxyFlags.NONE,
        None,
        'org.gnome.Shell',
        '/org/gnome/Shell',
        'org.gnome.Shell',
        None);
proxy.Eval('(s)', 'global.reexec_self();')


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]