Hi
I experienced a problem with notify-send: it doesn't show any notification, not even with -t option or -u critical, like some in other forums suggested.
So i searched through the arch forum and arch wiki, but no luck at solving the problem.
I tried those steps to fix, but non of them seem working:
Created /usr/share/dbus-1/services/org.freedesktop.Notifications.service file and copy pasted what i found on the wiki: Desktop notifications - ArchWiki
Rollbacked xampp in a non-standard manner (5 months ago):
Basically with a new version of xampp i had a problem, so, in order to avoid to rollback everything (i noticed the bug 2 weeks later, just wanted to avoid breaking the system) i picked up the old xampp folder from timeshift and replaced it with the existing one.
Then went to /var/lib/pacman/local/xampp-8.1.4-1/ and rename it /var/lib/pacman/local/xampp-8.1.2-1/. In the end changed the version of xampp displayed by pacman by editing the line %VERSION% in /var/lib/pacman/local/xampp-8.1.2-1/desc
Modified the file in /home/dadezana/netbeans-12.6/netbeans/etc/netbeans.conf because netbeans wasn't finding the jdk
Edited kvantum config file
Uninstalled some packages installed with pip and reinstalled them with pacman to avoid conflict when upgrading the system (pacman found an alread existing file not installed by itself (pip did), and refused to substitute with the new one)
Edited the force shutdown time in a grub file from 90sec to 6sec
I think that's it, i don't remember anything else now. If someone pops into my mind I'll write it.
I uninstalled all the packages installed during the troubleshooting except notification-daemon.
Then i read the link you sent me and tried to do like the wiki said:
I also tried to write a python script that show notifications, but non of the library works.
Same applies to kdialog's passive pop ups. They does not show. Other options work fine (--msgbox, --password etc..).
The funny thing is that libnotify is required by discord, and it's able to send me notifications. I assume it uses notify-send too, right?
$ systemctl --user status org.freedesktop.Notifications
Unit org.freedesktop.Notifications.service could not be found.
Just trying to avoid messing up things more
Now i’ll try to restore the oldest snapshot taken with timeshift to check if notify-send works.
If not, i can try reinstalling kde. Or it’s better to reinstall only some packages of kde? (such as libevent, knotifications, knotifyconfig, libnotify , startup-notification )
I have no idea how Latte, or any dock would be appointed as Notifications client. Maybe because of included applets?..
In any case, it seems wrong, until someone more knowledgeable explains.
??
Edit:
Maybe link notification service to kde equivalent, instead of that you did?
this might be a stupid question, but its just because i am out of ideas:
You do have the notification widget on the system tray or anywhere else, right?
as the dbus-service, you should remove it. the /usr/share/dbus-1/services/org.kde.plasma.Notifications.service is the proper plasma notification service, and its owned by the plasma-workspace package.
what you should do, case you want to select another notification daemon, is link the proper notification service file into ~/.local/share/dbus-1/services.
If you mean this, yes
Otherwise, i don’t have any other notification widget
Can’t remove that
ln -s /usr/lib/notification-daemon-1.0/notification-daemon org.freedesktop.Notifications.service
however the problem seems to be the activation of that daemon, it always fail.
Thanks for help, i think i’ll just reinstall the os and everything will be good again. Next time i’ll check if notify-send works after i install some applications or change something into the system.
If not, i’ll ask to reopen this thread and i’ll write down what i did to not make it working (so if someone has the same problem can maybe fix it)
Linking is not the same, so I mean what I said.
This:
Or just delete the existing local link, if it exists (in ~/.local/share/dbus-1/services).
This is a panic solution for such a small problem.
Why don’t you just check if it happens to every user? Create a new user account and login to it. Does the same happen?
What is this saying?:
It does not seem to be active, and busctl status org.custom.Notifications give this error:
Failed to get credentials: No such device or address
Same if i put the file in /usr/share/dbus-1/services/ o link ln -s /usr/lib/notification-daemon-1.0/notification-daemon in those directories
Maybe am i doing something wrong
I also noticed this in system logs:
ago 14 19:08:30 dadezana-garuda dbus-daemon[1542]: [session uid=1000 pid=1542] Activating service name='org.freedesktop.Notifications' requested by ':1.29' (uid=1000 pid=2058 comm="/usr/lib/kdeconnectd")
ago 14 19:08:30 dadezana-garuda dbus-daemon[1542]: [session uid=1000 pid=1542] Activated service 'org.freedesktop.Notifications' failed: Failed to execute program org.freedesktop.Notifications: Exec format error
ago 14 19:08:30 dadezana-garuda kdeconnectd[2058]: kdeconnect.core: Could not query capabilities from notifications server
ago 14 19:08:30 dadezana-garuda dbus-daemon[619]: [system] Activating via systemd: service name='org.freedesktop.PackageKit' unit='packagekit.service' requested by ':1.61' (uid=1000 pid=2087 comm="/usr/lib/DiscoverNotifier")
ago 14 19:08:30 dadezana-garuda dbus-daemon[1542]: [session uid=1000 pid=1542] Activating service name='org.freedesktop.Notifications' requested by ':1.34' (uid=1000 pid=2056 comm="/usr/bin/flameshot")
ago 14 19:08:30 dadezana-garuda dbus-daemon[1542]: [session uid=1000 pid=1542] Activated service 'org.freedesktop.Notifications' failed: Failed to execute program org.freedesktop.Notifications: Exec format error
Idk if the problem is into the service file (the one already there) or in those 2 application (flameshot and kdeconnectd), but kdeconnect app just sent me one notification.
Running busctl --user status org.freedesktop.Notifications it seems active:
Dirs dbus-1/ and dbus-1/services does not exist on both users
Tested on another user i have, not working. Since i created it 4/5 months ago i created a new one: it works!
Meanwhile I try to apply some changes to make it similar to other users and see what happen. Even because idk what files to look for
This is proof you are actually destroying notifications yourself, or a program you use does it.
Changing system settings randomly, is a great way to learn by mistake.
I have been doing it all the time.
I wish you luck with your gaining knowledge journey!
Tell us what was finally the problem, so we share knowledge