Manually restore saved session files on KDE using qdbus command

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP












0















At times, i have multiple konsole terminal open with multiple tabs. I would like to save and restore it manually, just in case i accidentally close the window. In KDE there is a command to save the current session manually via qdbus. I managed to save it using the command:



qdbus org.kde.ksmserver /KSMServer org.kde.KSMServerInterface.saveCurrentSession "mysession"


I've checked whether the KDE session was saved, using the following command and it shows the name of the session file i saved along with other system default sessions like saved by user and saved at previous logout



qdbus org.kde.ksmserver /KSMServer org.kde.KSMServerInterface.sessionList


I've also checked the files in the following path (i believe this is where the sessions are saved) , and it shows my saved konsole sessions. The timestamp tallies with the time where i run the saveCurrentSsession command.



/users/nz26861/.kde/share/config/session


Now i'm trying to restore the session via command line. I've checked the /KSMServer commands and the command to restore the session is:



qdbus org.kde.ksmserver /KSMServerorg.kde.KSMServerInterface.restoreSubSession


I ran the command (with my saved session's name as argument) but nothing happened.



qdbus org.kde.ksmserver /KSMServerorg.kde.KSMServerInterface.restoreSubSession "mysession"


In some KDE forums, they said to run using the command ksmserver. I tried this as well and it gives out the following error at the konsole terminal Could not register with D-BUS. Aborting.



Anyone managed to get the restoreSubSession command working?



Btw, I'm using KDE 4.14.8










share|improve this question


























    0















    At times, i have multiple konsole terminal open with multiple tabs. I would like to save and restore it manually, just in case i accidentally close the window. In KDE there is a command to save the current session manually via qdbus. I managed to save it using the command:



    qdbus org.kde.ksmserver /KSMServer org.kde.KSMServerInterface.saveCurrentSession "mysession"


    I've checked whether the KDE session was saved, using the following command and it shows the name of the session file i saved along with other system default sessions like saved by user and saved at previous logout



    qdbus org.kde.ksmserver /KSMServer org.kde.KSMServerInterface.sessionList


    I've also checked the files in the following path (i believe this is where the sessions are saved) , and it shows my saved konsole sessions. The timestamp tallies with the time where i run the saveCurrentSsession command.



    /users/nz26861/.kde/share/config/session


    Now i'm trying to restore the session via command line. I've checked the /KSMServer commands and the command to restore the session is:



    qdbus org.kde.ksmserver /KSMServerorg.kde.KSMServerInterface.restoreSubSession


    I ran the command (with my saved session's name as argument) but nothing happened.



    qdbus org.kde.ksmserver /KSMServerorg.kde.KSMServerInterface.restoreSubSession "mysession"


    In some KDE forums, they said to run using the command ksmserver. I tried this as well and it gives out the following error at the konsole terminal Could not register with D-BUS. Aborting.



    Anyone managed to get the restoreSubSession command working?



    Btw, I'm using KDE 4.14.8










    share|improve this question
























      0












      0








      0








      At times, i have multiple konsole terminal open with multiple tabs. I would like to save and restore it manually, just in case i accidentally close the window. In KDE there is a command to save the current session manually via qdbus. I managed to save it using the command:



      qdbus org.kde.ksmserver /KSMServer org.kde.KSMServerInterface.saveCurrentSession "mysession"


      I've checked whether the KDE session was saved, using the following command and it shows the name of the session file i saved along with other system default sessions like saved by user and saved at previous logout



      qdbus org.kde.ksmserver /KSMServer org.kde.KSMServerInterface.sessionList


      I've also checked the files in the following path (i believe this is where the sessions are saved) , and it shows my saved konsole sessions. The timestamp tallies with the time where i run the saveCurrentSsession command.



      /users/nz26861/.kde/share/config/session


      Now i'm trying to restore the session via command line. I've checked the /KSMServer commands and the command to restore the session is:



      qdbus org.kde.ksmserver /KSMServerorg.kde.KSMServerInterface.restoreSubSession


      I ran the command (with my saved session's name as argument) but nothing happened.



      qdbus org.kde.ksmserver /KSMServerorg.kde.KSMServerInterface.restoreSubSession "mysession"


      In some KDE forums, they said to run using the command ksmserver. I tried this as well and it gives out the following error at the konsole terminal Could not register with D-BUS. Aborting.



      Anyone managed to get the restoreSubSession command working?



      Btw, I'm using KDE 4.14.8










      share|improve this question














      At times, i have multiple konsole terminal open with multiple tabs. I would like to save and restore it manually, just in case i accidentally close the window. In KDE there is a command to save the current session manually via qdbus. I managed to save it using the command:



      qdbus org.kde.ksmserver /KSMServer org.kde.KSMServerInterface.saveCurrentSession "mysession"


      I've checked whether the KDE session was saved, using the following command and it shows the name of the session file i saved along with other system default sessions like saved by user and saved at previous logout



      qdbus org.kde.ksmserver /KSMServer org.kde.KSMServerInterface.sessionList


      I've also checked the files in the following path (i believe this is where the sessions are saved) , and it shows my saved konsole sessions. The timestamp tallies with the time where i run the saveCurrentSsession command.



      /users/nz26861/.kde/share/config/session


      Now i'm trying to restore the session via command line. I've checked the /KSMServer commands and the command to restore the session is:



      qdbus org.kde.ksmserver /KSMServerorg.kde.KSMServerInterface.restoreSubSession


      I ran the command (with my saved session's name as argument) but nothing happened.



      qdbus org.kde.ksmserver /KSMServerorg.kde.KSMServerInterface.restoreSubSession "mysession"


      In some KDE forums, they said to run using the command ksmserver. I tried this as well and it gives out the following error at the konsole terminal Could not register with D-BUS. Aborting.



      Anyone managed to get the restoreSubSession command working?



      Btw, I'm using KDE 4.14.8







      shell kde d-bus session






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jan 29 at 6:16









      nabilishesnabilishes

      338




      338




















          0






          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "106"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f497360%2fmanually-restore-saved-session-files-on-kde-using-qdbus-command%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Unix & Linux Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f497360%2fmanually-restore-saved-session-files-on-kde-using-qdbus-command%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown






          Popular posts from this blog

          How to check contact read email or not when send email to Individual?

          Bahrain

          Postfix configuration issue with fips on centos 7; mailgun relay