Hi,<br><br>I&#39;m using xmonad 0.10 with Ubuntu 11.10.  I&#39;ve switched to using SLiM and starting xmonad from my .xsession file.<br><br>Before switching to using .xsession to start xmonad, I used it in conjunction with Gnome, and starting it from .gnomerc.  This was slow, and did not enable me to use the latest version of xmonad.  However, it had the side benefit of being able to logout gracefully and being able to shutdown/restart directly from within the session without needing to put in a sudo or root  password.<br>

<br>What I mean by &quot;graceful logout&quot; is that applications that are currently running do not think that the machine died unexpectedly.  The most prominent example of that is Firefox and Chrome.  If they are running while I hit M-S-q (which runs:  &quot;io (exitWith ExitSuccess)&quot;), next time I log in they show me the &quot;I crashed last time, do you want to restore?&quot; message.<br>

<br>Currently to shut down my machine, I need to log out, and then shutdown/restart using the login manager, which is annoying.  Both this and logout used to work from gnome-do&#39;s session management commands.  Which I&#39;m guessing is intertwined with Gnome, that I am no longer using.<br>

<br>What is the best way to logout, shutdown, and restart from with xmonad?<br><br>Thanks,<br>-- <br><font face="&#39;courier new&#39;, monospace"><b>Eyal Erez &lt;</b><a href="mailto:oneself@gmail.com" target="_blank"><b>oneself@gmail.com</b></a><b>&gt;</b><br>

<br></font><div><div><font face="&#39;courier new&#39;, monospace">There are 10 types of people, those who know binary and those who don&#39;t.</font></div></div><div><font face="&#39;courier new&#39;, monospace"><br></font></div>

<br>