• user@lemmy.one
    link
    fedilink
    arrow-up
    0
    ·
    9 months ago

    Haha. Popos gnome doesn’t have this. You get a pop up and says 60s count down. Wish I knew what command that is. I usually have hotkey ‘poweroff’ and that ista kills everything and shuts down lol

    • ArcaneSlime@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      0
      ·
      9 months ago

      The command shutdown defaults to 60s, but doesn’t throw the popup. shutdown +60 will give you 60min instead (and +30 is 30min, etc), shutdown -c to cancel, and shutdown --show will show if one is scheduled shutdown -h I believe is the “do it now” option but I always just give it the minute.

  • nucleative@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    9 months ago

    EarlyOOM is your friend. Tweak it to save the most important stuff and kill irrelevant stuff first when low on memory.

    • interdimensionalmeme@lemmy.ml
      link
      fedilink
      arrow-up
      0
      ·
      9 months ago

      Why can’t browsers discard tabs to disk instead of this ridiculous assumption that the server will still exist to redownload the tab content rom.

      • Phoenixz@lemmy.ca
        link
        fedilink
        arrow-up
        0
        ·
        9 months ago

        Well… though there are reasons to save pages to disk, the server being still up is a fair assumption, really.

  • Phoenixz@lemmy.ca
    link
    fedilink
    arrow-up
    0
    ·
    9 months ago

    Linux actually also has a graceful shutdown process. It tells apps its shutting down by sending SIGTERM, and its up to each process to flush data asap, do whatever they gotta do, and then shut down.

    If they don’t listen then linux will indeed pull out the baseball bat chainsaw katana and make processes die whether they want to or not.

  • MonkderDritte@feddit.de
    link
    fedilink
    arrow-up
    0
    ·
    9 months ago

    SIGTERM is the graceful way tho? It nicely asks programs to please close and cleanup. Unlike SIGKILL, which bombs the shop and creates orphans.

    • Thann@lemmy.ml
      link
      fedilink
      English
      arrow-up
      0
      ·
      9 months ago

      And we give steam a fewilliseconds to comply, so IDK what they’re complaing about…

      • TechAnon@lemm.ee
        link
        fedilink
        arrow-up
        0
        ·
        9 months ago

        Steam is clunky… Exit -> Oh you want to exit? Let me launch a new window letting you know I’m shutting down and take about 20 seconds while I was sitting here idle before you asked to shutdown.

        See you tomorrow where I’ll validate your games again. Just in case!

      • MonkderDritte@feddit.de
        link
        fedilink
        arrow-up
        0
        ·
        edit-2
        9 months ago

        ?

        You’re supposed to close Steam via menu or systray. If you run it in cli, you see that it cleans then a whole bunch up for a few seconds.

    • SpaceCowboy@lemmy.ca
      link
      fedilink
      arrow-up
      0
      ·
      9 months ago

      Yup. And you can kill processes in Windows to in the task manager. Or probably with a Powershell command too, but nobody’s gonna learn Powershell LOL.

      There’s nearly always equivalent functions in both Linux and Windows, just in Windows you gotta click around in more bullshit forms and shit to find stuff. Or learn Powershell, but again, LOL. They are both OSes after all, they do similar things. Just one might do them better than the other.

      • lud@lemm.ee
        link
        fedilink
        arrow-up
        0
        ·
        9 months ago

        I use powershell quite a bit at work and I really like it.

        If anything it’s much easier to read than the abomination called bash.

          • lud@lemm.ee
            link
            fedilink
            arrow-up
            0
            ·
            9 months ago

            You don’t have to follow best practices though. You can name shit pretty much whatever you want.

          • capital@lemmy.world
            link
            fedilink
            arrow-up
            0
            ·
            9 months ago

            I really appreciate the consistency. People also dog it for being verbose to write but it makes it so much more legible.

            /shrug

            • MrPommeroy@lemmy.world
              link
              fedilink
              arrow-up
              0
              ·
              9 months ago

              I usually write verbose code and use self-documenting function names, but to have such a limited set of verbs available can be frustrating. They could at least have used a proper dictionary and included all verbs. Then have a map of synonyms that are preferred, like instead of ‘create’ they prefer ‘new’ (which isn’t even a verb).

          • pantyhosewimp@lemmynsfw.com
            link
            fedilink
            arrow-up
            0
            ·
            9 months ago

            Boy oh boy would you hate AppleScript. This is what I have to type to throw files in the trash instead of deleting them.

            tell application ”Finder” to delete POSIX file “/full/fucking/path/to/file”
            
            • PlexSheep@infosec.pub
              link
              fedilink
              arrow-up
              0
              ·
              9 months ago

              Why do you need to “tell” some “application”? Why do you need a “finder” if you know the absolute path already? Does this imply that “finder” always runs, ready to be told something?

              • pantyhosewimp@lemmynsfw.com
                link
                fedilink
                arrow-up
                0
                ·
                9 months ago

                Finder is macOS equivalent of Windows Explorer (maybe, it’s been a while). I assume Linux desktop suites have various similar processes. In other words, a second optional layer (with more features) to access runtime libc file manipulation api.

        • stetech@lemmy.world
          link
          fedilink
          arrow-up
          0
          ·
          9 months ago

          It might be nice and all that (I wouldn’t know), but it’s not a sub- nor superset of glorious POSIX

        • SpaceCowboy@lemmy.ca
          link
          fedilink
          arrow-up
          0
          ·
          9 months ago

          It’s one of those things wher eI’m sure it’s fine if you learn it. But it’s not DOS CMD, but also not bash.

          So instead of improving CMD to have more features or just going all the way and offering an official bash implementation, they want me to learn a third thing. Just don’t have time for it.

          • capital@lemmy.world
            link
            fedilink
            arrow-up
            0
            ·
            9 months ago

            It’s second to none if you have to get things done in a Windows environment, especially if dealing with Active Directory.

            But if not, I don’t blame you for not picking it up. Right tool for the job and all that.

  • Ironfacebuster@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    9 months ago

    Almost every time I restart my Windows PC from an update, it sits on the “closing apps screen” or “restarting” screen then gives up completely and I have to force it to shut down/restart

    And, just about every other time I restart with an update, it closes apps and then just fully shuts down after the update!

    It’s super graceful! 😭

    • MonkeMischief@lemmy.today
      link
      fedilink
      arrow-up
      0
      ·
      edit-2
      9 months ago

      EVERY TIME!!

      “A program is preventing Windows from shutting down”

      The program : A generic non-descript white box icon with no title.

      Clicking shutdown/restart anyway becomes standard procedure at this point.

    • 𝕸𝖔𝖘𝖘@infosec.pub
      link
      fedilink
      English
      arrow-up
      0
      ·
      edit-2
      9 months ago

      “restarting” for 15 minutes. Then crashes. Now I have to reinstall updates and go through it all over again. I hate how crappy the windows update process has become.

      Except for the immutable versions I have, Linux almost never needs to reboot after an update. Upgrades, yes, but not standard updates. And even after upgrades, it just works [(except for one of the immutable versions I have)].

      I usually close all programs before shutting down / rebooting, anyway (a habit I picked up from Win95 days, where it would crash if programs prevented it from shutting down), so I don’t really feel this SIGKILL issues.

      • Shareni@programming.dev
        link
        fedilink
        arrow-up
        0
        ·
        9 months ago

        Linux almost never needs to reboot after an update

        Doesn’t it often need a reboot to apply some updates?

        I rember reading something along those lines then I was researching why Fedora installs some updates after a reboot. Most

        • 𝕸𝖔𝖘𝖘@infosec.pub
          link
          fedilink
          English
          arrow-up
          0
          ·
          9 months ago

          Fedora is the immutable I was referring to that does need to reboot. Linux Mint and OpenSuse only need to reboot after an upgrade. I’ve never had to reboot them after updates. Mileage may vary, of course, as different people have different software, tools, and libraries installed.

          • Vilian@lemmy.ca
            link
            fedilink
            arrow-up
            0
            ·
            9 months ago

            to be fair, fedora downloads and apply the update before reboot, windows download, apply and then reboot, that’s why it take so much time

          • Shareni@programming.dev
            link
            fedilink
            arrow-up
            0
            ·
            9 months ago

            I was talking about regular fedora. It’s not that you have to reboot, but you don’t get to use those updates until you do. The most obvious example is updating the kernel and its modules.

            • 𝕸𝖔𝖘𝖘@infosec.pub
              link
              fedilink
              English
              arrow-up
              0
              ·
              9 months ago

              You’re correct. A kernel update would fall under the umbrella of a system upgrade, where the system needs to shut down to allow underlying components to be reloaded.

      • Ironfacebuster@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        9 months ago

        As Microsoft adds ads in more places more and more, I consider moving over to Linux but I just have too many files and weird Windows only programs that I use that I can’t

        I also haven’t really found a desktop environment I really like yet, so I’m open to suggestions for dual booting!

        • 𝕸𝖔𝖘𝖘@infosec.pub
          link
          fedilink
          English
          arrow-up
          0
          ·
          9 months ago

          I pretty much always recommend Linux Mint Cinnamon for anyone entering Linux for the first time or anyone who wants something to just work 98% of the time. I use Mint Debian Edition (testing it out. So far, so good, and it’s quickly entering first place in terms of recommendations, as it seems just as stable and uses Debian packages instead of Ubuntu’s), OpenSuse with KDE (less for beginner’s and more for those who want “eye candy” and some nostalgia), and Fedora Silverblue (currently have an update issue with its certificates, so can’t really recommend it yet). I’ve found very few Windows programs to not work within WINE (more complex, system file dependent programs generally are those that fail), so you may find that all of your Windows-only programs work perfectly fine under WINE.

          With Mint (and others, I’m sure), you can install multiple DEs and test them out, then remove those you don’t like. Or keep them all and play DE roulette I guess lol

          • Ironfacebuster@lemmy.world
            link
            fedilink
            arrow-up
            0
            ·
            9 months ago

            I’ll definitely check some of those out, thanks! I have a little experience with Linux since every self hosted server PC I’ve built has always had Ubuntu Server, but even then I was tempted to try and dual boot Mint

      • uis@lemm.ee
        link
        fedilink
        arrow-up
        0
        ·
        9 months ago

        I was doing my project while system updated itself from sources. Шindows should take notes here.

        And I’m not even talking about CRIU, where you can save entire progtam state on disk, reboot and restore it back in the state before reboot.

  • OR3X@lemm.ee
    link
    fedilink
    arrow-up
    0
    ·
    9 months ago

    Meanwhile Windows regularly gets hung up for several minutes on the “shutting down…” screen for no fucking reason. Only happens when I’m in a hurry too.