Skip Navigation
InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)PR
Posts
2
Comments
34
Joined
2 yr. ago
  • It seems this function is missing in MAUI on linux yet :/

    To be fair, I think there are almost more GUI frameworks specifically for dotnet on Windows, each of which has been "the standard that everyone should follow" for a year or two, than there are DEs for linux. It's ridiculous how often Microsoft changes their mind.

  • scrot does not seems to work on wayland, but it looks very nice for X11. I've also found Flameshot, which claims to work on KDE wayland and, albeit with a forced confirmation dialog, on gnome wayland. I'll update my post if I tested these tools more thoroughly.

  • .NET @programming.dev
    Prime @lemmy.sdf.org

    Take screenshot in linux using dotnet

    I want to take a screenshot. In Windows, that's a simple Graphics::CopyFromScreen call.

    In Linux, I feel a little confused on how to do this. It seems there is a principal and stark distinction between X11 and Wayland, so I have to include both code paths. For either, it seems there is quite a lot of boilerplate code, often tagged as 'may break depending on your configuration, good luck'.

    Effectively, what I found is recommended most often is to call ffmpeg to let it handle that. I'm sure that works, but I find it rather unpalatable.

    I find this strange. Taking a screenshot is, in my mind at least, supposed to be a straightforward part of a standard library. Perhaps it is, and I just completely missed it? If not, is there a good library that works out-of-the-box on most variants of linux?


    Update: Thank you all for the input. I eventually went with calling ImageMagick. It is fast, easy to use, well documented, and supports capturing arbitrary displays with little effort.

    Reddit @lemmy.world
    Prime @lemmy.sdf.org

    Removed post as "job posting"

    Same post was allowed when the phrasing "... let ffmpeg do the job" is changed to "let ffmpeg handle it". So the removal seems to be purely keyword-based, in a resoundingly stupid fashion.

  • No. You must acknowledge it. When i was 18 i also voted for a party in good faith. A few years later i learned that they are absolute assholes and should be in jail. I simply didn't understand the concepts and motives before.

  • Why don't you do it more often? Is it not fun for you? Most people do it regularly because they enjoy it. What im trying to say is it is a bit like asking what is the longest you go without breathing