• Lmaydev@programming.dev
      link
      fedilink
      English
      arrow-up
      5
      ·
      8 months ago

      Seems like an ancient hack to allow bat files to be run via that function.

      I expect windows is full of stuff like that.

      • onlinepersona@programming.dev
        link
        fedilink
        English
        arrow-up
        5
        ·
        8 months ago

        Yeah, backwards compatibility is good when it isn’t a security issue.

        Anti Commercial AI thingy

        CC BY-NC-SA 4.0

        Inserted with a keystroke running this script on linux with X11

        #!/usr/bin/env nix-shell
        #!nix-shell -i bash --packages xautomation xclip
        
        sleep 0.2
        (echo '::: spoiler Anti Commercial AI thingy
        [CC BY-NC-SA 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/)
        
        Inserted with a keystroke running this script on linux with X11
        ```bash'
        cat "$0"
        echo '```
        :::') | xclip -selection clipboard
        xte "keydown Control_L" "key V" "keyup Control_L"
        
        
        • anton
          link
          fedilink
          English
          arrow-up
          4
          ·
          edit-2
          8 months ago

          I can barely live with that licence thingy, but don’t paste that tutorial into your comment ffs.

          • onlinepersona@programming.dev
            link
            fedilink
            English
            arrow-up
            2
            ·
            edit-2
            8 months ago

            I’ve gotten the question often enough about why and how. You don’t have to open it 🤷

            Anti Commercial AI thingy

            CC BY-NC-SA 4.0

            Inserted with a keystroke running this script on linux with X11

            #!/usr/bin/env nix-shell
            #!nix-shell -i bash --packages xautomation xclip
            
            sleep 0.2
            (echo '::: spoiler Anti Commercial AI thingy
            [CC BY-NC-SA 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/)
            
            Inserted with a keystroke running this script on linux with X11
            ```bash'
            cat "$0"
            echo '```
            :::') | xclip -selection clipboard
            xte "keydown Control_L" "key V" "keyup Control_L"
            
            
            • anton
              link
              fedilink
              English
              arrow-up
              3
              ·
              8 months ago

              Seems like my client doesn’t show it as a drop-down I thought it was like the reddit spoiler that where the same size but blacked out. Sorry.