<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hi,<br><br>I am trying to create a python script which will check if the system requires a restart due to packages update.<br><br>I found the RequireRestart class.<br><br>https://lazka.github.io/pgi-docs/PackageKitGlib-1.0/classes/RequireRestart.html<br><br>But I am unable to use it properly.<br><br>I tried https://gist.github.com/arindamchoudhury/3612d5ca2ec65ff5b617<a href="https://gist.github.com/arindamchoudhury/3612d5ca2ec65ff5b617" target="_blank"></a><br><br>but I am getting a blank list back. How should I do it? Is it possible to get RequireRestart or UpdateDetail from TransactionPast?<br><br>Thanks,<br>Arindam Choudhury<br><a href="https://lazka.github.io/pgi-docs/PackageKitGlib-1.0/classes/RequireRestart.html" target="_blank"></a><br><br><br><br>                                         </div></body>
</html>