FS#70107 - [gtk4] split out demo apps
Attached to Project:
Arch Linux
Opened by Philip Müller (philm) - Sunday, 21 March 2021, 11:31 GMT
Last edited by Jan Alexander Steffens (heftig) - Friday, 09 April 2021, 23:37 GMT
Opened by Philip Müller (philm) - Sunday, 21 March 2021, 11:31 GMT
Last edited by Jan Alexander Steffens (heftig) - Friday, 09 April 2021, 23:37 GMT
|
Details
Description:
Seems as 'gtk4' is currently built, we have Demo Apps included. Those should be split out. Additional info: * package version(s): 1:4.0.3-1 Steps to reproduce: * install gtk4 * you will have those demo apps available The following apps are included: usr/bin/gtk4-builder-tool usr/bin/gtk4-demo usr/bin/gtk4-demo-application usr/bin/gtk4-encode-symbolic-svg usr/bin/gtk4-icon-browser usr/bin/gtk4-launch usr/bin/gtk4-print-editor usr/bin/gtk4-query-settings usr/bin/gtk4-widget-factory We should check which are needed for 'gtk4' as a framework and split optional apps split out to 'gtk4-utils' or something: usr/share/applications/org.gtk.Demo4.desktop usr/share/applications/org.gtk.IconBrowser4.desktop usr/share/applications/org.gtk.PrintEditor4.desktop usr/share/applications/org.gtk.WidgetFactory4.desktop |
This task depends upon
Closed by Jan Alexander Steffens (heftig)
Friday, 09 April 2021, 23:37 GMT
Reason for closing: Fixed
Additional comments about closing: gtk4 1:4.2.0-3
Friday, 09 April 2021, 23:37 GMT
Reason for closing: Fixed
Additional comments about closing: gtk4 1:4.2.0-3
gtk4 should be manage te same as gtk3....
```
$ pacman -Ql gtk3 | grep demo
gtk3 /usr/bin/gtk3-demo
gtk3 /usr/bin/gtk3-demo-application
gtk3 /usr/share/applications/gtk3-demo.desktop
...
```
https://gitlab.gnome.org/GNOME/gtk/-/blob/gtk-3-24/demos/gtk-demo/gtk3-demo.desktop
This way you don't see those apps, which is not present in GTK4:
https://gitlab.gnome.org/GNOME/gtk/-/blob/gtk-4.0/demos/gtk-demo/org.gtk.Demo4.desktop
1. Arch does have the pkg:gnome-software-packagekit-plugin and even if it's not supported as installation tool, it's in the repo. Now if installed, gnome-software will find the 'gtk icon browser' marked as "installed". This one is part of pkg:gtk4. If you try to uninstall it, it will uninstall pkg:gtk4 alongside pkg:gnome-shell and pkg:gdm. This is bad and even if considered as user error and easy to fix it's something that can happen but should not be possible.
As a user, I wouldn't know where to report this "bug"?
For me it's clearly a misconception in between how upstream sets the defaults and how upstream expects downstream to build the packages.
2. Is more a general opinion of mine. For, in quotes, "frameworks", such as gtk, Qt[, …] I think Arch should go the same way as upstream packages them for flatpak. (https://gitlab.gnome.org/GNOME/gtk/-/tree/master/build-aux/flatpak). (in the way of 'whats split up', not in the way of 'as huge single runtime package') Thats because upstream tests them and builds them that way. I think the whole point that the demo apps are enabled by default is because downstream is expected to act on its own.
This said, I have opened a report on upstream gtk for disabling the demos as per default: https://gitlab.gnome.org/GNOME/gtk/-/issues/3843
> My expectation is that distros would package the demos in a devel package, together with docs and headers, which should keep them off enduser systems in most cases.
Well... Arch does package them together with the headers. The docs are split out only because they're 70mb.
The option I would prefer is to split the demo apps out into an own gtk4-demos (as the meson build option "option('demos')"). I think thats in line with what GTK expect them to be the most. This would also keep them in reach for people who actually need them while stop to annoy everyone else (and would fix my "1." bug as well).