-
-
Notifications
You must be signed in to change notification settings - Fork 60
Closed
Description
What Happened
I use Granite.Widgets.TimePicker in my flatpaked app and noticed it does not follow the clock-format setting (12h or 24h) chosen in the host system.
Looks like TimePicker checks the clock-format using Granite.DateTime.is_clock_format_12h () which uses GSettings key org.gnome.desktop.interface.clock-format. However, since GSettings in flatpak apps is sandboxed this returns the value from the sandbox―not from the host.
Expected Behavior
Granite.DateTime.is_clock_format_12h () should always return the host clock-format setting.
Steps to Reproduce
- Choose 12h as a clock-format in Date & Time Plug
- Open Terminal
- Run
gsettings get org.gnome.desktop.interface clock-format. You should get'12h' - Run some app in Flatpak, e.g.
flatpak run --command=sh io.elementary.screenshot - Run
gsettings get org.gnome.desktop.interface clock-formatin the sandboxed prompt. You should get'24h'regardless of the host's clock-format setting
Logs
N/A
Platform Information
- elementary OS 6 Odin with fully updated
- libgranite-dev:
6.1.0+r2071+pkg119~ubuntu6.1 - flatpak:
1.10.2~ubuntu6.1
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
Metadata
Metadata
Assignees
Labels
No labels