[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-frameworks-devel
Subject:    Re: Review Request 126717: Fix DBus service name of polkit agent
From:       "David Edmundson" <david () davidedmundson ! co ! uk>
Date:       2016-01-11 17:48:48
Message-ID: 20160111174848.23702.65670 () mimi ! kde ! org
[Download RAW message or body]

--===============1926910528925722083==
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/126717/#review90921
-----------------------------------------------------------

Ship it!


Ship It!

- David Edmundson


On Jan. 11, 2016, 3:59 p.m., Martin Gräßlin wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/126717/
> -----------------------------------------------------------
> 
> (Updated Jan. 11, 2016, 3:59 p.m.)
> 
> 
> Review request for KDE Frameworks and David Edmundson.
> 
> 
> Repository: kauth
> 
> 
> Description
> -------
> 
> It's nowadays org.kde.polkit-kde-authentication-agent-1.
> 
> Also perform preAuthAction for Backends with AuthorizeFromHelperCapability
> 
> The Polkit backend implements preAuthAction and performs the passing of
> winId there. The current implementation never called into it as the
> preAuthAction is not performed for backends with the
> AuthorizeFromHelperCapability.
> 
> If both AuthorizeFromHelperCapability and PreAuthActionCapability are set
> we call it again.
> 
> 
> Diffs
> -----
> 
> src/backends/polkit-1/Polkit1Backend.cpp cf0b7073688f2caa02fa9cfe1d483a0f1512e423 
> src/kauthexecutejob.cpp d92b7e9c47478bdf5a6f1c6361d5c48d61c836e6 
> 
> Diff: https://git.reviewboard.kde.org/r/126717/diff/
> 
> 
> Testing
> -------
> 
> xprop on the auth dialog and xwininfo on the window which caused the action:
> 
> _NET_WM_ALLOWED_ACTIONS(ATOM) = _NET_WM_ACTION_MOVE, _NET_WM_ACTION_RESIZE, \
> _NET_WM_ACTION_MINIMIZE, _NET_WM_ACTION_SHADE, _NET_WM_ACTION_MAXIMIZE_VERT, \
> _NET_WM_ACTION_MAXIMIZE_HORZ, _NET_WM_ACTION_FULLSCREEN, \
> _NET_WM_ACTION_CHANGE_DESKTOP, _NET_WM_ACTION_CLOSE \
> _KDE_NET_WM_FRAME_STRUT(CARDINAL) = 4, 4, 29, 4 _NET_FRAME_EXTENTS(CARDINAL) = 4, \
> 4, 29, 4 _NET_WM_DESKTOP(CARDINAL) = 0
> _KDE_NET_WM_ACTIVITIES(STRING) = "00000000-0000-0000-0000-000000000000"
> WM_STATE(WM_STATE):
> window state: Normal
> icon window: 0x0
> _NET_WM_STATE(ATOM) = 
> _NET_WM_USER_TIME(CARDINAL) = 29673761
> WM_TRANSIENT_FOR(WINDOW): window id # 0x4e00009
> _WM_ICON_NAME(UTF8_STRING) = 
> XdndAware(ATOM) = BITMAP
> _KDE_NET_WM_USER_CREATION_TIME(CARDINAL) = 29673731
> WM_NAME(STRING) = "Authentication Required"
> _NET_WM_NAME(UTF8_STRING) = "Authentication Required"
> _MOTIF_WM_HINTS(_MOTIF_WM_HINTS) = 0x3, 0x26, 0x1e, 0x0, 0x0
> _NET_WM_WINDOW_TYPE(ATOM) = _NET_WM_WINDOW_TYPE_DIALOG, _NET_WM_WINDOW_TYPE_NORMAL
> _XEMBED_INFO(_XEMBED_INFO) = 0x0, 0x1
> WM_CLIENT_LEADER(WINDOW): window id # 0x2400005
> WM_HINTS(WM_HINTS):
> Client accepts input or input focus: True
> Initial state is Normal State.
> _NET_WM_PID(CARDINAL) = 2034
> WM_CLASS(STRING) = "polkit-kde-authentication-agent-1", \
> "polkit-kde-authentication-agent-1" WM_PROTOCOLS(ATOM): protocols  \
> WM_DELETE_WINDOW, WM_TAKE_FOCUS, _NET_WM_PING, _NET_WM_CONTEXT_HELP \
> WM_NORMAL_HINTS(WM_SIZE_HINTS): user specified location: 390, 300
> user specified size: 511 by 344
> program specified minimum size: 404 by 202
> window gravity: Static
> martin@martin-desktop: ~ $ xwininfo 
> 
> xwininfo: Please select the window about which you
> would like information by clicking the
> mouse in that window.
> 
> xwininfo: Window id: 0x4e00009 "Screen Locking — KDE Control Module"
> 
> Absolute upper-left X:  704
> Absolute upper-left Y:  318
> Relative upper-left X:  0
> Relative upper-left Y:  0
> Width: 555
> Height: 364
> Depth: 24
> Visual: 0xbd
> Visual Class: TrueColor
> Border width: 0
> Class: InputOutput
> Colormap: 0x4e00008 (not installed)
> Bit Gravity State: ForgetGravity
> Window Gravity State: NorthWestGravity
> Backing Store State: NotUseful
> Save Under State: no
> Map State: IsViewable
> Override Redirect State: no
> Corners:  +704+318  -1941+318  -1941-398  +704-398
> -geometry 555x364+704+318
> 
> 
> Observe: WM_TRANSIENT_FOR is set correctly.
> 
> 
> Thanks,
> 
> Martin Gräßlin
> 
> 


--===============1926910528925722083==
MIME-Version: 1.0
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: 8bit




<html>
 <body>
  <div style="font-family: Verdana, Arial, Helvetica, Sans-Serif;">
   <table bgcolor="#f9f3c9" width="100%" cellpadding="12" style="border: 1px #c9c399 \
solid; border-radius: 6px; -moz-border-radius: 6px; -webkit-border-radius: 6px;">  \
<tr>  <td>
      This is an automatically generated e-mail. To reply, visit:
      <a href="https://git.reviewboard.kde.org/r/126717/">https://git.reviewboard.kde.org/r/126717/</a>
  </td>
    </tr>
   </table>
   <br />



 <p>Ship it!</p>



 <pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: \
-pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">Ship It!</pre>  <br />









<p>- David Edmundson</p>


<br />
<p>On January 11th, 2016, 3:59 p.m. UTC, Martin Gräßlin wrote:</p>








<table bgcolor="#fefadf" width="100%" cellspacing="0" cellpadding="12" style="border: \
1px #888a85 solid; border-radius: 6px; -moz-border-radius: 6px; \
-webkit-border-radius: 6px;">  <tr>
  <td>

<div>Review request for KDE Frameworks and David Edmundson.</div>
<div>By Martin Gräßlin.</div>


<p style="color: grey;"><i>Updated Jan. 11, 2016, 3:59 p.m.</i></p>









<div style="margin-top: 1.5em;">
 <b style="color: #575012; font-size: 10pt;">Repository: </b>
kauth
</div>


<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Description </h1>
 <table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" \
style="border: 1px solid #b8b5a0">  <tr>
  <td>
   <pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: \
-moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: \
break-word;">It&#39;s nowadays org.kde.polkit-kde-authentication-agent-1.

Also perform preAuthAction for Backends with AuthorizeFromHelperCapability

The Polkit backend implements preAuthAction and performs the passing of
winId there. The current implementation never called into it as the
preAuthAction is not performed for backends with the
AuthorizeFromHelperCapability.

If both AuthorizeFromHelperCapability and PreAuthActionCapability are set
we call it again.</pre>
  </td>
 </tr>
</table>


<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Testing </h1>
<table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" style="border: \
1px solid #b8b5a0">  <tr>
  <td>
   <pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: \
-moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: \
break-word;"><p style="padding: 0;text-rendering: inherit;margin: 0;line-height: \
inherit;white-space: inherit;">xprop on the auth dialog and xwininfo on the window \
which caused the action:</p> <p style="padding: 0;text-rendering: inherit;margin: \
0;line-height: inherit;white-space: inherit;"><div class="codehilite" \
style="background: #f8f8f8"><pre style="line-height: \
125%">_NET_WM_ALLOWED_ACTIONS(ATOM) = _NET_WM_ACTION_MOVE, _NET_WM_ACTION_RESIZE, \
_NET_WM_ACTION_MINIMIZE, _NET_WM_ACTION_SHADE, _NET_WM_ACTION_MAXIMIZE_VERT, \
_NET_WM_ACTION_MAXIMIZE_HORZ, _NET_WM_ACTION_FULLSCREEN, \
_NET_WM_ACTION_CHANGE_DESKTOP, _NET_WM_ACTION_CLOSE _KDE_NET_WM_FRAME_STRUT(CARDINAL) \
= 4, 4, 29, 4 _NET_FRAME_EXTENTS(CARDINAL) = 4, 4, 29, 4
_NET_WM_DESKTOP(CARDINAL) = 0
_KDE_NET_WM_ACTIVITIES(STRING) = &quot;00000000-0000-0000-0000-000000000000&quot;
WM_STATE(WM_STATE):
            window state: Normal
            icon window: 0x0
_NET_WM_STATE(ATOM) = 
_NET_WM_USER_TIME(CARDINAL) = 29673761
WM_TRANSIENT_FOR(WINDOW): window id # 0x4e00009
_WM_ICON_NAME(UTF8_STRING) = 
XdndAware(ATOM) = BITMAP
_KDE_NET_WM_USER_CREATION_TIME(CARDINAL) = 29673731
WM_NAME(STRING) = &quot;Authentication Required&quot;
_NET_WM_NAME(UTF8_STRING) = &quot;Authentication Required&quot;
_MOTIF_WM_HINTS(_MOTIF_WM_HINTS) = 0x3, 0x26, 0x1e, 0x0, 0x0
_NET_WM_WINDOW_TYPE(ATOM) = _NET_WM_WINDOW_TYPE_DIALOG, _NET_WM_WINDOW_TYPE_NORMAL
_XEMBED_INFO(_XEMBED_INFO) = 0x0, 0x1
WM_CLIENT_LEADER(WINDOW): window id # 0x2400005
WM_HINTS(WM_HINTS):
            Client accepts input or input focus: True
            Initial state is Normal State.
_NET_WM_PID(CARDINAL) = 2034
WM_CLASS(STRING) = &quot;polkit-kde-authentication-agent-1&quot;, \
&quot;polkit-kde-authentication-agent-1&quot; WM_PROTOCOLS(ATOM): protocols  \
WM_DELETE_WINDOW, WM_TAKE_FOCUS, _NET_WM_PING, _NET_WM_CONTEXT_HELP \
WM_NORMAL_HINTS(WM_SIZE_HINTS):  user specified location: 390, 300
            user specified size: 511 by 344
            program specified minimum size: 404 by 202
            window gravity: Static
martin@martin-desktop: ~ $ xwininfo

xwininfo: Please select the window about which you
      would like information by clicking the
      mouse in that window.

xwininfo: Window id: 0x4e00009 &quot;Screen Locking — KDE Control Module&quot;

Absolute upper-left X:  704
Absolute upper-left Y:  318
Relative upper-left X:  0
Relative upper-left Y:  0
Width: 555
Height: 364
Depth: 24
Visual: 0xbd
Visual Class: TrueColor
Border width: 0
Class: InputOutput
Colormap: 0x4e00008 (not installed)
Bit Gravity State: ForgetGravity
Window Gravity State: NorthWestGravity
Backing Store State: NotUseful
Save Under State: no
Map State: IsViewable
Override Redirect State: no
Corners:  +704+318  -1941+318  -1941-398  +704-398
-geometry 555x364+704+318
</pre></div>
</p>
<p style="padding: 0;text-rendering: inherit;margin: 0;line-height: \
inherit;white-space: inherit;">Observe: WM_TRANSIENT_FOR is set correctly.</p></pre>  \
</td>  </tr>
</table>


<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Diffs</b> </h1>
<ul style="margin-left: 3em; padding-left: 0;">

 <li>src/backends/polkit-1/Polkit1Backend.cpp <span style="color: \
grey">(cf0b7073688f2caa02fa9cfe1d483a0f1512e423)</span></li>

 <li>src/kauthexecutejob.cpp <span style="color: \
grey">(d92b7e9c47478bdf5a6f1c6361d5c48d61c836e6)</span></li>

</ul>

<p><a href="https://git.reviewboard.kde.org/r/126717/diff/" style="margin-left: \
3em;">View Diff</a></p>






  </td>
 </tr>
</table>







  </div>
 </body>
</html>


--===============1926910528925722083==--


[Attachment #3 (text/plain)]

_______________________________________________
Kde-frameworks-devel mailing list
Kde-frameworks-devel@kde.org
https://mail.kde.org/mailman/listinfo/kde-frameworks-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic