Skip to content

Commit

Permalink
ColorScheme: Remove accountsservice finish arg (elementary#144)
Browse files Browse the repository at this point in the history
As of Granite 6.1.2 we don't need this sandbox hole anymore since we use the settings portal
  • Loading branch information
danirabbit authored Oct 27, 2021
1 parent 78c5e3e commit 9ab520c
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions apis/color-scheme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9ab520c

Please sign in to comment.