I do not have and addiction problem, you have a problem with my addiction.

  • qjkxbmwvz
    link
    fedilink
    arrow-up
    7
    ·
    20 days ago

    I always ran startx & exit to prevent someone from VT switching to a logged in console if my screen was locked :)

      • qjkxbmwvz
        link
        fedilink
        arrow-up
        1
        ·
        19 days ago

        Right, that’s what the & exit is supposed to prevent, since it’s already logged out.

        • stanka@lemmy.ml
          link
          fedilink
          arrow-up
          1
          ·
          19 days ago

          If you switch to the VT with Ctrl-Alt-F1, and hit ctrl-z the process is suspended, but does not complete so it never gets to the exit.

          At least that is my suspicion. I’m going to try it when I’m in front of a machine.

          • ulterno@lemmy.kde.social
            link
            fedilink
            English
            arrow-up
            1
            ·
            edit-2
            19 days ago

            In case of && , the second process waits for the first process to finish with error code 0, before it starts.

            In case of &, the second process starts without waiting for the first to finish. Meaning, by the time you are looking at the GUI, the exit command has already been executed.

            • stanka@lemmy.ml
              link
              fedilink
              arrow-up
              2
              ·
              19 days ago

              Right. Yeah I didn’t engage my brain on the & initially as i thought it was just a typo. But that should work, seems others on the internet think the same.

              I like ‘exec startx’, but really if someone has physical access, unless you are doing a lot of other security, you can’t be safe.

              • ulterno@lemmy.kde.social
                link
                fedilink
                English
                arrow-up
                0
                ·
                19 days ago

                I tend to be lucky in that regard, as people around me who might get physical access, tend to not have Linux know-how, even if they think of pranking me.

                Also, I lock my room.