5

I usually save the session with the graphical app xfce4-session-settings (Session -> Save Session). Can this be also done from the command-line? How?

  • 1
    Looking at the source, the client appears to be in settings/session-editor.c . The part that saves seems to send a message through this: xfsm_manager_dbus_client_checkpoint(manager_dbus_proxy, "", &error) but it seems to also get asynchronous answers. Perhaps you can create a non graphical version from it? I mean a new program. – A.B Oct 29 '17 at 16:51
  • @A.B Thanks for the pointers, if there is no CLI command, I'll check it out. – tokland Oct 29 '17 at 17:12
  • 1
    More information on using dbus-send with the xfce4-session manager, including saving sessions, see this link: users.xfce.org/~kelnos/testing/xfsm-dbus-examples.txt. – guest123 Oct 29 '17 at 23:28
4

@guest123 pointed to this page. To sum it up, you have to run this:

$ dbus-send --session --dest=org.xfce.SessionManager --print-reply \
      /org/xfce/SessionManager org.xfce.Session.Manager.Checkpoint string:""

It works for me with Xfce 4.12.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.