Code Monkey home page Code Monkey logo

Comments (8)

danirabbit avatar danirabbit commented on September 24, 2024

Are you also using the notifications indicator and/or switchboard plug from master? The new notification server doesn't use the old gala settings keys, so it won't be affected by toggling those

from notifications.

marbetschar avatar marbetschar commented on September 24, 2024

makes sense ... altough I just installed switchboard-plug-notifications and wingpanel-indicator-notifications from master. Unfortunately notifications are still shown in DnD and look like this:

Screenshot from 2020-03-03 17-50-04

Is this also due to missing more dependencies?

from notifications.

marbetschar avatar marbetschar commented on September 24, 2024

FWIW: If it's too troublesome to get this running, I'll happily revert back to the stable packages. What do you think?

Would just have been nice to get the Time Limit app working in DnD as I use it quite often - but it's not mission critical.

from notifications.

danirabbit avatar danirabbit commented on September 24, 2024

@marbetschar I'm not sure what's going on there. It looks like maybe the notification server isn't running and this is some kind of built in fallback with GLib? Can you confirm that io.elementary.notifications is running?

from notifications.

marbetschar avatar marbetschar commented on September 24, 2024

@danrabbit good catch. It's indeed not running - although use-new-notifications is still set to true. I started it manually using io.elementary.notifications & and it logged the following to the Terminal (also tried reboot, no change):

** (io.elementary.notifications:5946): WARNING **: 18:23:25.454: Application.vala:46: Could not aquire bus org.freedesktop.Notifications

from notifications.

worldofpeace avatar worldofpeace commented on September 24, 2024

I'm using this in NixOS 20.09 pre git with https://github.com/elementary/switchboard-plug-notifications/releases/tag/2.1.6 https://github.com/elementary/wingpanel-indicator-notifications/releases/tag/2.1.4. I can confirm that this is running. I also have the patch in session-settings that overrides use-new-notifications to true.

Doing:

notify-send -u low Hey Hey

I see a notification. The -u low makes it low urgency.

I am using notifications at 22cdbd3.

from notifications.

worldofpeace avatar worldofpeace commented on September 24, 2024

I have found the bug. It is likely NixOS specific.

The code in wingpanel-indicator-notfications has the recursive boolean set to false https://github.com/elementary/wingpanel-indicator-notifications/blob/d9bff149e1a38ec2aa30522f92bb47b39f19b6a2/src/Indicator.vala#L48.
In NixOS we don't install gsettings-schemas globally, so XDG_DATA_DIRS has multiple entries to /nix/store paths.

Reading the docs

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.

By making recursive true, and adding some debug code, I can see clearly that this fixes the issue for me.

from notifications.

danirabbit avatar danirabbit commented on September 24, 2024

Closing since this should be resolved in the notifications indicator

from notifications.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.