5 ms·
I think this is pretty common on Linux. You would want to GTK (or Qt) I would think to draw the top level window and perhaps system menus, etc. even though the
by nu11ptr 11mo ago
I think this is pretty common on Linux. You would want to GTK (or Qt) I would think to draw the top level window and perhaps system menus, etc. even though the UI itself is drawn using a GPU canvas.
- moralestapia 11mo agoAre GTK/Qt memory safe now?
- discreteevent 11mo agoNo. What is the likelihood of an attack on a desktop program via memory unsafety?
- lesuorac 11mo agoReally high? What do you run your browser as?
- discreteevent 11mo agoBrowser runs complex untrusted code from the internet. Most desktop programs don't do anything like that. The servo programmers were riding a motorbike. Using Rust for a desktop program would be more like wearing a crash helmet in a car.
- moralestapia 11mo ago>What is the likelihood of an attack on a desktop program via memory unsafety? Low. What's the likelihood of someone entering your house if it's unlocked? Also low, and yet you lock it.
- discreteevent 11mo agoA desktop program is already in a locked house - your desktop - which I can't login to.
- moralestapia 11mo ago[flagged]
- Chris2048 11mo agoDo all desktop programs only ever run in "your house"?
- tredre3 11mo ago> You would want to GTK (or Qt) I would think to draw the top level window and perhaps system menus, etc. even though the UI itself is drawn using a GPU canvas. No, you would want to draw for Wayland or X. GTK and Qt themselves don't burden with importing each-other to work, for example. My guess is that they import GTK only to get a title bar on GNOME, as GNOME forces applications to render their own. They could go custom and cut the dependency but it never looks quite right when apps do that.
- WhyNotHugo 11mo ago> They could go custom and cut the dependency but it never looks quite right when apps do that. This is literally what the GNOME devs advocate: that each application draw their own borders and titles. You might consider that it doesn't look quite right, but that's the design choice they're going with.
- phkahler 11mo agoNo. On Wayland all of that should be in the compositor. Window sizing and positioning can not be done by the apps, so it makes sense that the controls for that are drawn and handled by the WM. But Gnomes gotta gnome...