This app just starts some productivity session while forbidding some programs from starting. Is there a Linux and most importantly FOSS version of it?

  • marktuan@friendica.eskimo.com
    link
    fedilink
    arrow-up
    2
    ·
    6 days ago

    @Psyhackological @sports games For Linux, I’d probably prefer a combination of existing FOSS tools rather than something that has to run with deep system privileges. LeechBlock is useful for browser distractions, while AppArmor can be used to restrict specific applications.

    For a full “productivity session” approach, a small script could combine those ideas: temporarily apply the restrictions, start a timer, and provide a simple command to disable them early. That would keep the user in control while still making it inconvenient enough to launch distracting programs.

    I think the important distinction is whether the restrictions are voluntary and reversible. If it’s something you deliberately enable for yourself and can turn off when needed, it feels quite different from software that tries to enforce restrictions against the owner of the machine.

  • ThyTTY@lemmy.world
    link
    fedilink
    arrow-up
    15
    ·
    1 year ago

    I do not know any program like that but what worked for me was creating another user account that had no access to lots of stuff.

    • Psyhackological@lemmy.mlOP
      link
      fedilink
      arrow-up
      2
      arrow-down
      1
      ·
      1 year ago

      Yeah that’s idea but it will also lose some of the setup that I have right now. I wonder how hard it would he to tell the kernel not to spawn anything during session time.

      • Joe@discuss.tchncs.de
        link
        fedilink
        arrow-up
        10
        ·
        1 year ago

        With apparmor, you could enable and disable profiles that could restrict access to files and paths by name.

        For network traffic, it’s possible to use dnsmasq to blacklist or whitelist some domains.

  • communism@lemmy.ml
    link
    fedilink
    arrow-up
    6
    ·
    1 year ago

    LeechBlock for just the browser? And yeah AppArmor for stopping programs from launching.

  • t0mri@lemmy.mldeleted by creator
    link
    fedilink
    arrow-up
    2
    ·
    1 year ago

    forbidding some programs from starting

    You can write script for this