249
249
via <em class="parameter"><code>invocation</code></em>.
252
The calling thread is blocked for the duration of the
253
authentication which may be a very long time unless
254
<em class="parameter"><code>auth_no_user_interaction</code></em> is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>.
257
The follow variables can be used in <em class="parameter"><code>message</code></em>
261
<div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p>udisks2.device - If <em class="parameter"><code>object</code></em> has a <a class="link" href="UDisksBlock.html" title="UDisksBlock"><span class="type">UDisksBlock</span></a> interface, this property is set to the value of the <span class="type">"preferred-device"</span> property.</p></li></ul></div>
252
The calling thread is blocked for the duration of the authorization
253
check which could be a very long time since it may involve
254
presenting an authentication dialog and having a human user use
255
it. If <span class="quote">“<span class="quote">auth.no_user_interaction</span>”</span> in <em class="parameter"><code>options</code></em> is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>
256
no authentication dialog will be presented and the check is not
257
expected to take a long time.
260
See <a class="xref" href="udisks-polkit-actions.html#udisks-polkit-details" title="Table 1. Known polkit variables">Table 1, “Known polkit variables”</a> for the variables that
261
can be used in <em class="parameter"><code>message</code></em> but note that not all variables can be used
262
in all checks. For example, any check involving a <a class="link" href="UDisksDrive.html" title="UDisksDrive"><span class="type">UDisksDrive</span></a> or a
263
<a class="link" href="UDisksBlock.html" title="UDisksBlock"><span class="type">UDisksBlock</span></a> object can safely include the fragment
264
<span class="quote">“<span class="quote">$(drive)</span>”</span> since it will always expand to the name of
265
the drive, e.g. <span class="quote">“<span class="quote">INTEL SSDSA2MH080G1GC (/dev/sda1)</span>”</span> or
266
the block device file e.g. <span class="quote">“<span class="quote">/dev/vg_lucifer/lv_root</span>”</span>
267
or <span class="quote">“<span class="quote">/dev/sda1</span>”</span>. However this won't work for operations
268
that isn't on a drive or block device, for example calls on the
269
<a class="link" href="gdbus-org.freedesktop.UDisks2.Manager.html#gdbus-interface-org-freedesktop-UDisks2-Manager.top_of_page">Manager</a>
264
272
<div class="variablelist"><table border="0">
265
273
<col align="left" valign="top">
281
289
<td><p><span class="term"><em class="parameter"><code>options</code></em> :</span></p></td>
282
<td>A <a href="http://library.gnome.org/devel/glib/unstable/glib-GVariant.html#GVariant"><span class="type">GVariant</span></a> to check for the <code class="literal">auth.no_user_interaction</code> option or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<a href="http://foldoc.org/allow-none"><span class="acronym">allow-none</span></a>]</span>
290
<td>A <a href="http://library.gnome.org/devel/glib/unstable/glib-GVariant.html#GVariant"><span class="type">GVariant</span></a> to check for the <span class="quote">“<span class="quote">auth.no_user_interaction</span>”</span> option or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<a href="http://foldoc.org/allow-none"><span class="acronym">allow-none</span></a>]</span>