• Ricky Rigatoni@lemm.ee
    link
    fedilink
    arrow-up
    16
    ·
    5 hours ago

    Windows: Has a complex and graceful shutdown process to make sure programs never close if there’s a problem with them and your computer just stalls on shutdown until you hold down the power button and completely void out the purpose of the graceful shutdown.

  • dave@lemmy.wtf
    link
    fedilink
    arrow-up
    7
    ·
    10 hours ago

    one of my favourite things when i switched to linux first was using the meta+Q hotkey to shutdown a program (this was with PopOS i think). with windows there is alt+F4 but some programs only use shift+alt+F4 which makes it a lot more confusing. on top of all that if youre using a laptop then its another keypress for the Fn key in some cases

    • oo1@lemmings.world
      link
      fedilink
      English
      arrow-up
      8
      ·
      9 hours ago

      Windows: I refuse to shut down because of a, b , c

      Me: But I already clos. . .

      Windows: No you didnt’t, stop lying!

      Me : Well, I pressed the X and the window dissappeared.

      Windows: Lol, noob. Did you never even heard of a task managers?

    • Agent641@lemmy.world
      link
      fedilink
      arrow-up
      20
      arrow-down
      1
      ·
      18 hours ago

      “Mmm, that didn’t work, try again later I guess? Just stop bothering me with your petty needs and get back to generating monetizable data that I can harvest.”

    • primemagnus@lemmy.ca
      link
      fedilink
      arrow-up
      11
      arrow-down
      12
      ·
      20 hours ago

      Came here to say this. Windows goes full retard on everything it does. Graceful smh

    • BobSentMe@lemm.ee
      link
      fedilink
      arrow-up
      3
      ·
      5 hours ago

      In As400, you type PWRDWNSYS *IMMED.

      Then you pray it comes back up in a timely manner.

  • hector@sh.itjust.works
    link
    fedilink
    arrow-up
    18
    ·
    19 hours ago

    Linux is actually great if you need to implement graceful shutdown with signals – I love it all around :)))

  • Realitätsverlust@lemmy.zip
    link
    fedilink
    English
    arrow-up
    85
    arrow-down
    3
    ·
    1 day ago

    Linux does give every application time to shut down correctly, but unlike windows, it won’t wait for ages until every process is down. Linux WILL shut down in a certain timeframe, whereas windows waits for years if necessary. In my old job, we all had to use windows and I had times where I clicked shut down, turned off my monitor, grabbed my stuff, left and in the next morning, the PC was still on because Notepad refused to just close lmao.

    • WIZARD POPE💫@lemmy.world
      link
      fedilink
      arrow-up
      28
      ·
      23 hours ago

      That is what infuriates me so much. Instead of just killing the process after 5 mins of waiting it just cancels the shutdown. Like fuck off with that shit.

      • InFerNo@lemmy.ml
        link
        fedilink
        arrow-up
        20
        arrow-down
        2
        ·
        23 hours ago

        Depending on the use case, that can be a good thing or a bad thing

            • dai@lemmy.world
              link
              fedilink
              arrow-up
              4
              ·
              7 hours ago

              Man I hope next time I press windows and type an application by name, or by executable.exe I get a spinning icon then a stack of unrelated web results that are probably malware.

          • InputZero@lemmy.world
            link
            fedilink
            arrow-up
            6
            ·
            8 hours ago

            Then you might not want windows cause Windows forces updates on you whether you want them or not and break things. Linux will happily wait for you to forget for so long it breaks because the target API doesn’t accept your old ass code anymore. At least in Linux as long as I don’t forget I’m good. I sometimes forget

            • fuck_u_spez_in_particular@lemmy.world
              link
              fedilink
              arrow-up
              1
              arrow-down
              1
              ·
              7 hours ago

              TBF there are ways to completely disable updates in Windows (I just did in my VM because it should literally only run 3 programs which are not working with wine)

  • astrsk@fedia.io
    link
    fedilink
    arrow-up
    67
    ·
    1 day ago

    If your app doesn’t respond to SIGTERM gracefully, you need to fix your app. The system did its job as documented.

  • chronicledmonocle@lemmy.world
    link
    fedilink
    arrow-up
    134
    ·
    edit-2
    21 hours ago

    Linux gives processes a chance to gracefully close. However, it also will absolutely NOT allow a process to hang up the shutdown or restart procedure after a point. If you’re using systemd (which there is a good chance you are), it’ll count down. If the process hasn’t stopped in the time allotted, it gets Old Yellered.

  • Raltoid@lemmy.world
    link
    fedilink
    arrow-up
    326
    arrow-down
    8
    ·
    edit-2
    1 day ago
    1. Linux normally does a nice shutdown as well, unless you force it.

    2. You can force it on windows if you really want.

    I’m so tired of linux memes posted/made by people who don’t know much about windows or linux.

    • JcbAzPx@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      36 minutes ago

      Windows also has to worry about getting sued by another multinational conglomerate when some idiot loses the only copy if a super critical file because they were too lazy to save and forced their laptop to shutdown so they could pickup lunch.

    • SpaceCowboy@lemmy.ca
      link
      fedilink
      arrow-up
      1
      ·
      1 hour ago

      Yeah this is more of a situation where because more applications are built for windows you’re more likely to encounter poor quality application level software on windows than on Linux. Especially if you stay within the walled garden that most distros provide.

      People see a pattern with having a lot more problems with applications on windows than they do on linux and wrongly assume it’s because of the OS.

      It’s really silly since there’s plenty of real bullshit going on with windows people could meme about. There’s no need to make up shit about windows being bad at something it actually does ok with.

    • Shanmugha@lemmy.world
      link
      fedilink
      arrow-up
      17
      arrow-down
      5
      ·
      edit-2
      1 day ago

      Oh, p-lease, can force it my ass, Linux has never failed to shutdown on me when using plain obvious GUI method. windows - can easily hang on forever as long as computer stays powered. The point of all the memes is exactly insane windows defaults, not the things that can or can’t be done by someone with enough knowledge

    • cmgvd3lw@discuss.tchncs.de
      link
      fedilink
      arrow-up
      34
      arrow-down
      2
      ·
      edit-2
      1 day ago

      Absolutely, if people agree or not, the core windows is still a pretty powerful operating system. Its sad that they are ruining it by adding crap into it.

      • endeavor@sopuli.xyz
        link
        fedilink
        English
        arrow-up
        4
        ·
        14 hours ago

        Theres a button on the back of the psu that comes in handy a LOT with windows. Useless on linux unless you want to use that button for its intended purpose.

        • criticon@lemmy.ca
          link
          fedilink
          arrow-up
          19
          ·
          1 day ago

          Some clarification of the command

          -r #restart

          -s #shutdown

          -t 00 #wait 0 seconds

          -f #forced

            • Laurel Raven@lemmy.zip
              link
              fedilink
              English
              arrow-up
              8
              ·
              1 day ago

              I can’t speak for them if they’re joking or not but it’s something you can absolutely do. *.bat files (short for “batch”, as in a batch of commands to execute in sequence) are the script files for the Windows command line, and can be executed by double clicking on them

              • jmacapp@lemm.ee
                link
                fedilink
                arrow-up
                1
                arrow-down
                2
                ·
                1 day ago

                Thanks, I’m familiar with batch files. This just seems like a very bad way to perform a shutdown, especially when running a UI Desktop windowing system. And even if that shutdown command is fully supported from the GUI, I would guess you need to be admin to run it, which means you can run the bat file as admin, so if you can edit the file or modify the env in which it runs (e.g. PATH) it seems like it could be a security problem. And if you don’t need to be root to run the shutdown command, that seems like its own problem. I suppose Windows still has the “run as administrator” from the context menu so maybe that helps.

                • Laurel Raven@lemmy.zip
                  link
                  fedilink
                  English
                  arrow-up
                  3
                  ·
                  19 hours ago

                  You did say “I don’t use Windows” which sounded like you were saying you didn’t know if what they were saying was technically plausible or reasonable, and without knowing what you do or don’t know about Windows or DOS, figured I’d respond with the presumption that it’s possible you’re only really familiar with *NIX systems (which is not a judgement).

                  I find it kludgey and unnecessary to shut down that way, but it’s not exactly a bad idea, and it does not require admin rights.

                  And there’s no reason it wouldn’t be supported: when you run the file, it opens it in a terminal window, it’s exactly like if you manually opened it and typed it from a technical point of view.

                  And if someone malicious has the ability to edit a file on your desktop, they could do a lot more dangerous things, pretty much anything you could put in the batch file, more or less directly.

                  Really, the only issue here is that you’d always be force closing your programs when you shut down which increases the odds that eventually they might corrupt one of their files… Not a huge risk, but non-zero.

                • Sonicdemon86@lemmy.world
                  link
                  fedilink
                  English
                  arrow-up
                  5
                  ·
                  1 day ago

                  As it is a simple command you don’t need to be an admin or run as administrator. Listen kids don’t run batch files if you don’t know where they came from or who made them.

        • kewko@sh.itjust.works
          link
          fedilink
          arrow-up
          6
          arrow-down
          8
          ·
          1 day ago

          If -t is specified -f is assumed and redundant, but also it will try to do graceful l, but with a patience of a cranky toddler

          • aeiou_ckr@lemmy.world
            link
            fedilink
            arrow-up
            20
            ·
            1 day ago

            Not really. If -f (force) is removed windows will shutdown similar to pressing the shutdown button and will wait for your input regarding open programs. -f is needed to just just “do it” with no hesitation or response from the user.

            • kewko@sh.itjust.works
              link
              fedilink
              arrow-up
              4
              arrow-down
              6
              ·
              edit-2
              1 day ago

              Straight from the doc

              /t <xxx> Sets the time-out period before shutdown to xxx seconds. The valid range is 0-315360000 (10 years), with a default of 30. If the timeout period is greater than 0, the /f parameter is implied.

              • Lupus@feddit.org
                link
                fedilink
                arrow-up
                28
                ·
                1 day ago

                Sooo when you use the prompt

                Shutdown.exe -r -t 00

                You would need the -f since we defined the timeout period as 0. Because:

                If the timeout period is greater than 0, the /f parameter is implied.

      • MadMadBunny@lemmy.ca
        link
        fedilink
        arrow-up
        4
        ·
        20 hours ago

        Back in the day if I wanted to quit Windows the fastest way, I’d rename the c:/windows folder…

        Back to the DOS prompt faster than you could blink

      • Dave@lemmy.nz
        link
        fedilink
        arrow-up
        17
        arrow-down
        1
        ·
        1 day ago

        The process manager lets you kill any process.

        You can also click the do it anyway button when it’s waiting on shutdown, but I’ve had less consistent success with that.

      • madame_gaymes@programming.dev
        link
        fedilink
        English
        arrow-up
        3
        arrow-down
        2
        ·
        edit-2
        24 hours ago

        There’s also a hardware way, works on practically any device. Phone, tablet, laptop, desktop, etc. Doesn’t matter what the OS is.

        Press and hold power button for anywhere between 5 - 15 seconds. The second half of this meme describes this method the best, methinks.

    • derpgon@programming.dev
      link
      fedilink
      arrow-up
      4
      ·
      23 hours ago
      1. Linux programs either HAVE to be quick while receiving shutdown signal, otherwise the state will be fucked, work will be lost, and people will be mad, and program will stop being used.

      2. Clicking the Windows button to force shutdown will straight up kill the program and won’t care at all.

    • Apytele@sh.itjust.works
      link
      fedilink
      arrow-up
      8
      ·
      1 day ago

      It was simpler using Linux to just kill things unceremoniously, but my coworkers are also consistently amazed when Epic throws a temper tantrum (rare, but it happens) and I walk over and ctrl-alt-delete and tell it to sit down and shut the fuck up until it’s ready to reboot and act right.