Re: [systemd-devel] org.freedesktop.systemd1.manage-units - which unit?

2019-10-07 Thread Ian Pilcher
On 10/7/19 4:30 AM, Colin Guthrie wrote: It's a nasty work around, but for me it was all wrapped up in a script rather than manually run, so it didn't matter too much really. You can adjust that to suit make it more tolerant to other arguments etc, but it's definitely no where near as nice or

Re: [systemd-devel] org.freedesktop.systemd1.manage-units - which unit?

2019-10-07 Thread Colin Guthrie
Mantas Mikulėnas wrote on 02/10/2019 16:37: > On Wed, Oct 2, 2019 at 5:58 PM Ian Pilcher > wrote: > > On 9/26/19 11:49 AM, Mantas Mikulėnas wrote: > > In JS-based polkit rules, the action usually comes with 'unit' and > > 'verb' polkit variables --

Re: [systemd-devel] org.freedesktop.systemd1.manage-units - which unit?

2019-10-02 Thread Mantas Mikulėnas
On Wed, Oct 2, 2019 at 5:58 PM Ian Pilcher wrote: > On 9/26/19 11:49 AM, Mantas Mikulėnas wrote: > > In JS-based polkit rules, the action usually comes with 'unit' and > > 'verb' polkit variables -- according to src/core/dbus-unit.c: > > > > if (action.id == > >

Re: [systemd-devel] org.freedesktop.systemd1.manage-units - which unit?

2019-10-02 Thread Ian Pilcher
On 9/26/19 11:49 AM, Mantas Mikulėnas wrote: In JS-based polkit rules, the action usually comes with 'unit' and 'verb' polkit variables -- according to src/core/dbus-unit.c:     if (action.id == "org.freedesktop.systemd1.manage-unit" && action.lookup("unit") ==

Re: [systemd-devel] org.freedesktop.systemd1.manage-units - which unit?

2019-09-26 Thread Mantas Mikulėnas
In JS-based polkit rules, the action usually comes with 'unit' and 'verb' polkit variables -- according to src/core/dbus-unit.c: if (action.id == "org.freedesktop.systemd1.manage-unit" && action.lookup("unit") == "foo.service") { return polkit.Result.YES; } In older polkit versions which use