xdg-desktop-portal-gtk
xdg-desktop-portal-gtk copied to clipboard
Expose org.gnome.desktop.interface.clock-format
Some apps display event times or need to display a time for other things. The preferred clock-format can vary based on locale. When running in flatpak, apps will always show 24h format because the setting is not exposed to the portal. This messes with apps like:
- Weather
- Clocks
- Fractal
- Geary
Users of these apps that ship as flatpaks will never get 12h format if they prefer it.
This already works. Calling org.freedesktop.portal.Settings.Read(('org.gnome.desktop.interface', 'clock-format')) returns (<'12h'>,)
Hmm, this doesn't work within any apps I know of though. The apps above are still using 24h when running them as flatpaks.
Well they have to actually use the portal, it is an explicit API to use.