Prime

joined 2 years ago
[–] Prime@lemmy.sdf.org 9 points 21 hours ago

Microsoft is doing this today. I can't link it because I'm on mobile. It is in dotnet. It is not going well :)

[–] Prime@lemmy.sdf.org 1 points 4 days ago

Matrix multiplication should be the other way around, i.e. not like cascading functions. Oh and function cabbages should also be the other way around :) i prefer to read it not like a manga

[–] Prime@lemmy.sdf.org 1 points 2 weeks ago

To be fair these abbreviations are ubiquitously used.

[–] Prime@lemmy.sdf.org 1 points 4 weeks ago (4 children)

No. If it does not work you can't be sure if it is your fault or the device is broken. This will lead to support costs for the manufacturer

[–] Prime@lemmy.sdf.org 2 points 1 month ago

Nice idea. I've had a look and it appears to be embedded in a lot of Qt code that is hard for me to follow and/or use in dotnet :/

[–] Prime@lemmy.sdf.org 2 points 1 month ago (2 children)

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.

[–] Prime@lemmy.sdf.org 1 points 1 month ago* (last edited 1 month ago)

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.

[–] Prime@lemmy.sdf.org 2 points 1 month ago

Thank you so much for the detailed reply!

[–] Prime@lemmy.sdf.org 2 points 1 month ago

I think so, and Threema, too.

9
submitted 1 month ago* (last edited 1 month ago) by Prime@lemmy.sdf.org to c/dotnet@programming.dev
 

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.

 

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.

[–] Prime@lemmy.sdf.org 103 points 1 month ago (6 children)

One factor is German history with Stasi und ww2 fascism. We like increased independence and privacy, so lemmy rather than Facebook

[–] Prime@lemmy.sdf.org 1 points 1 month ago

That is a big one

view more: next ›