Logout and suspend

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








up vote
1
down vote

favorite












Is there any way to logout and then suspend in one command in XFCE?



I have tried



xfce4-session-logout --logout && xfce4-session-logout --suspend



But the session cuts out at the first command so the suspend does not run










share|improve this question



























    up vote
    1
    down vote

    favorite












    Is there any way to logout and then suspend in one command in XFCE?



    I have tried



    xfce4-session-logout --logout && xfce4-session-logout --suspend



    But the session cuts out at the first command so the suspend does not run










    share|improve this question

























      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      Is there any way to logout and then suspend in one command in XFCE?



      I have tried



      xfce4-session-logout --logout && xfce4-session-logout --suspend



      But the session cuts out at the first command so the suspend does not run










      share|improve this question















      Is there any way to logout and then suspend in one command in XFCE?



      I have tried



      xfce4-session-logout --logout && xfce4-session-logout --suspend



      But the session cuts out at the first command so the suspend does not run







      xfce






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Feb 25 at 15:43

























      asked Feb 25 at 13:02









      smistry

      1062




      1062




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          2
          down vote













          You don't have to provide logout option. The --suspend is enough, as said in the man page it does logout with any of the options.






          share|improve this answer




















          • when I do only xfce4-session-logout --suspend it just locks and suspends, I want logout and suspend
            – smistry
            Feb 25 at 15:06










          • try replace ...&& xfce4-session-logout --suspend with ...&& systemctl suspend then
            – L.Integra
            Feb 25 at 15:18










          • still have the same problem with that, the suspend part wont run
            – smistry
            Feb 25 at 15:42










          • maybe ; instead of &&
            – L.Integra
            Feb 25 at 16:56






          • 1




            & should work
            – L.Integra
            Feb 25 at 17:34










          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "89"
          ;
          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',
          convertImagesToLinks: true,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1009612%2flogout-and-suspend%23new-answer', 'question_page');

          );

          Post as a guest






























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          2
          down vote













          You don't have to provide logout option. The --suspend is enough, as said in the man page it does logout with any of the options.






          share|improve this answer




















          • when I do only xfce4-session-logout --suspend it just locks and suspends, I want logout and suspend
            – smistry
            Feb 25 at 15:06










          • try replace ...&& xfce4-session-logout --suspend with ...&& systemctl suspend then
            – L.Integra
            Feb 25 at 15:18










          • still have the same problem with that, the suspend part wont run
            – smistry
            Feb 25 at 15:42










          • maybe ; instead of &&
            – L.Integra
            Feb 25 at 16:56






          • 1




            & should work
            – L.Integra
            Feb 25 at 17:34














          up vote
          2
          down vote













          You don't have to provide logout option. The --suspend is enough, as said in the man page it does logout with any of the options.






          share|improve this answer




















          • when I do only xfce4-session-logout --suspend it just locks and suspends, I want logout and suspend
            – smistry
            Feb 25 at 15:06










          • try replace ...&& xfce4-session-logout --suspend with ...&& systemctl suspend then
            – L.Integra
            Feb 25 at 15:18










          • still have the same problem with that, the suspend part wont run
            – smistry
            Feb 25 at 15:42










          • maybe ; instead of &&
            – L.Integra
            Feb 25 at 16:56






          • 1




            & should work
            – L.Integra
            Feb 25 at 17:34












          up vote
          2
          down vote










          up vote
          2
          down vote









          You don't have to provide logout option. The --suspend is enough, as said in the man page it does logout with any of the options.






          share|improve this answer












          You don't have to provide logout option. The --suspend is enough, as said in the man page it does logout with any of the options.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Feb 25 at 14:17









          L.Integra

          666




          666











          • when I do only xfce4-session-logout --suspend it just locks and suspends, I want logout and suspend
            – smistry
            Feb 25 at 15:06










          • try replace ...&& xfce4-session-logout --suspend with ...&& systemctl suspend then
            – L.Integra
            Feb 25 at 15:18










          • still have the same problem with that, the suspend part wont run
            – smistry
            Feb 25 at 15:42










          • maybe ; instead of &&
            – L.Integra
            Feb 25 at 16:56






          • 1




            & should work
            – L.Integra
            Feb 25 at 17:34
















          • when I do only xfce4-session-logout --suspend it just locks and suspends, I want logout and suspend
            – smistry
            Feb 25 at 15:06










          • try replace ...&& xfce4-session-logout --suspend with ...&& systemctl suspend then
            – L.Integra
            Feb 25 at 15:18










          • still have the same problem with that, the suspend part wont run
            – smistry
            Feb 25 at 15:42










          • maybe ; instead of &&
            – L.Integra
            Feb 25 at 16:56






          • 1




            & should work
            – L.Integra
            Feb 25 at 17:34















          when I do only xfce4-session-logout --suspend it just locks and suspends, I want logout and suspend
          – smistry
          Feb 25 at 15:06




          when I do only xfce4-session-logout --suspend it just locks and suspends, I want logout and suspend
          – smistry
          Feb 25 at 15:06












          try replace ...&& xfce4-session-logout --suspend with ...&& systemctl suspend then
          – L.Integra
          Feb 25 at 15:18




          try replace ...&& xfce4-session-logout --suspend with ...&& systemctl suspend then
          – L.Integra
          Feb 25 at 15:18












          still have the same problem with that, the suspend part wont run
          – smistry
          Feb 25 at 15:42




          still have the same problem with that, the suspend part wont run
          – smistry
          Feb 25 at 15:42












          maybe ; instead of &&
          – L.Integra
          Feb 25 at 16:56




          maybe ; instead of &&
          – L.Integra
          Feb 25 at 16:56




          1




          1




          & should work
          – L.Integra
          Feb 25 at 17:34




          & should work
          – L.Integra
          Feb 25 at 17:34

















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1009612%2flogout-and-suspend%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          Which professions warranted travel in Medieval times?

          How do so many people here on Academia.SE, and in general, afford lavish higher education programs?

          Trouble downloading packages list due to a “Hash sum mismatch” error