Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

10
  • 1
    I do not see how it can run successfully: cron job do not see the DISPLAY variable, by default, and do not have the required authorization to access the X server. Commented Aug 22, 2011 at 20:32
  • First of all: Why would you want to do that? It seems that you are trying to achieve something that can be dome in more proper way. Commented Aug 22, 2011 at 20:52
  • I turned off the logoff confirmation message so when it runs it will just logout. I changed /etc/gdm/PostSession/Default to add in some custom code to emulate a nuke and restore of the user's home directory on logout. Commented Aug 22, 2011 at 21:03
  • @rozcietrzewiacz how would you go about scheduling this command to run? Commented Aug 22, 2011 at 21:12
  • 2
    From gnome-session-save manpage: You can specify the --kill argument to terminate the GNOME session. Why on earth would you want to do this periodically? Commented Aug 22, 2011 at 22:13