From 0e2c7ca99fdf15e41dc6915456bd13d17f122863 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Danielle=20For=C3=A9?= Date: Wed, 13 Oct 2021 14:41:10 -0700 Subject: [PATCH] ColorScheme: Remove accountsservice finish arg As of Granite 6.1.2 we don't need this sandbox hole anymore since we use the settings portal --- apis/color-scheme.md | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/apis/color-scheme.md b/apis/color-scheme.md index 255548b..c944e73 100644 --- a/apis/color-scheme.md +++ b/apis/color-scheme.md @@ -39,18 +39,6 @@ executable( ) ``` -Also, you need to update the `finish-args` section of your app's Flatpak manifest file with permission to read the user's style preference from AccountsService: - -```yaml -finish-args: - - '--share=ipc' - - '--socket=fallback-x11' - - '--socket=wayland' - - # Needed to read prefer-color-scheme with Granite.Settings - - '--system-talk-name=org.freedesktop.Accounts' -``` - Now, you can read and respond to the user's style preference with `Granite.Settings` and then use `Gtk.Settings` to set it in your app's `activate` function. ```csharp