TIL: Normally, GtkApplication will assume that arguments passed on the command line are files to be opened.

./demo /tmp/test
This application can not open files.

🤔

app = gtk_application_new("de.devlug.sandbox.demo", G_APPLICATION_HANDLES_OPEN);

Danach das Signal "open" per g_signal_connect "verbinden".

Open file:///tmp/test

💡

#GNU #Linux #Softwareentwicklung #Programmieren #gtk #gkt4

Added some formating to the #ollama chat widget - done the prompt modification stuff, not tested, and looking at basic tools stuff nexed #ai #vala #gkt4

If you want to reproduce:

The main #gkt4 MR just landed (https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/6533) \o/

I use a small patch to make the demo video player use it (https://gitlab.gnome.org/rmader/gtk/-/tree/dmabuf-texture-gst)

If you want to test direct-scanout (full zero-copy) on #GNOME Mutter, you'll need https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3177 on top of main.

The rest is plain #Fedora39

dmabuf passthrough (!6533) · Merge requests · GNOME / gtk · GitLab

Still to do: add subsurface stacking api make...

GitLab