@alexmurray in my post, I made a wrong comment, that I never tried to compile an app with strict confinement. But, I tried it but forgot what error I got. This is the error I get now,
error: Could not find GTK 4 introspection files. Is gobject-introspection installed?
at ./Blueprints/account_settings_dialog.blp line 1 column 11:
1 |using Gtk 4.0;
hint: search path: /snap/blueprint-compiler/x2/usr/lib/x86_64-linux-gnu/girepository-1.0:/usr/lib/x86_64-linux-gnu/girepository-1.0:/usr/lib/girepository-1.0
/home/soumyaxubuntu/Downloads/Project/Denaro/NickvisionMoney.GNOME/NickvisionMoney.GNOME.csproj(22,5): error MSB3073: The command "blueprint-compiler batch-compile ./Blueprints ./Blueprints ./Blueprints/*.blp" exited with code 1.
An error occurred when executing task 'Publish'.
Here, to fix I will need to install the typelib files of GTK-4 into the blueprint-compiler snap, which is not a proper approach. Cause different snaps will compile GTK-4 with different version of Gtk.
For example, someone using this with
gnome-3-38-2004 extension and using the gtk4 files from the repo, will need older gtk4 files, which will be provided by the repo package
libgtk-4-1. But, blueprint-compiler will not be able to access files.
I hope I’m able to make you understand this. If I have done any mistake in understanding then kindly explain me this. I will again try then.