xdg-desktop-portal-gtk icon indicating copy to clipboard operation
xdg-desktop-portal-gtk copied to clipboard

Expose org.gnome.desktop.interface.clock-format

Open BrainBlasted opened this issue 4 years ago • 3 comments

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.

BrainBlasted avatar Oct 28 '21 20:10 BrainBlasted

This already works. Calling org.freedesktop.portal.Settings.Read(('org.gnome.desktop.interface', 'clock-format')) returns (<'12h'>,)

TingPing avatar Oct 28 '21 21:10 TingPing

Hmm, this doesn't work within any apps I know of though. The apps above are still using 24h when running them as flatpaks.

BrainBlasted avatar Oct 28 '21 21:10 BrainBlasted

Well they have to actually use the portal, it is an explicit API to use.

TingPing avatar Oct 29 '21 12:10 TingPing