Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Indicator: Lookup io.elementary.notifications recursively #110

Merged
merged 1 commit into from Apr 6, 2020

Conversation

worldofpeace
Copy link
Contributor

The docs on SettingsSchemaSource get_default say

The returned source may actually consist of multiple schema sources from different directories, depending on which directories were given in `XDG_DATA_DIRS` and `GSETTINGS_SCHEMA_DIR`. For this reason, all lookups performed against the default source should probably be done recursively.

Without this in NixOS, it will always use gala notifications
because recursion is required. It would be nice if any new code
in Pantheon always works like this to support NixOS properly.


I noticed this in elementary/notifications#62 (comment).

The docs on  SettingsSchemaSource get_default say
```
The returned source may actually consist of multiple schema sources from different directories, depending on which directories were given in `XDG_DATA_DIRS` and `GSETTINGS_SCHEMA_DIR`. For this reason, all lookups performed against the default source should probably be done recursively.
```

Without this in NixOS, it will always use gala notifications
because recursion is required. It would be nice if any new code
in Pantheon always works like this to support NixOS properly.
worldofpeace added a commit to worldofpeace/switchboard-plug-notifications that referenced this pull request Apr 6, 2020
Copy link
Member

@tintou tintou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't harm us so looks good

worldofpeace added a commit to worldofpeace/switchboard-plug-notifications that referenced this pull request Apr 6, 2020
@worldofpeace
Copy link
Contributor Author

PR incoming for switchboard as well.

@tintou tintou merged commit 02b1e22 into elementary:master Apr 6, 2020
worldofpeace added a commit to worldofpeace/switchboard-plug-notifications that referenced this pull request Apr 6, 2020
worldofpeace added a commit to worldofpeace/switchboard-plug-notifications that referenced this pull request Apr 6, 2020
@worldofpeace worldofpeace deleted the fix-dnd-nixos branch April 6, 2020 06:14
tintou pushed a commit to elementary/switchboard-plug-notifications that referenced this pull request Apr 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants