Fix startup with gtk 4.17
Two fixes:
- Call gtk_init before opening a display: gtk 4.17 mandates that
gtk_init
be called beforegdk_display_get_default
(this is already being applied as a patch in debian/ubuntu/fedora) - Avoid gtk portal recursion: gtk 4.17 enables portal by default, use new API to disable portals