Empty file: ayatana-indicator-notifications; suspected failure of notifications

Hi–I also posted this to the Ubuntu Mate Community; I have Ubuntu Mate 22.04. I have an empty file (Pluma can’t detect the code in the file) for /usr/libexec/ayatana-indicator-notifications (ayatana-notifications.service or ayatana-Notifications-service) and need someone to give me the contents, please; WantedBy, etc. I am trying to get notifications working and have a script in my home/.local/bin, besides there being a mate-daemon that’s supposed to be executing notifications using that file. I suspect that’s the reason for the difficulty with notifications.

One simple way to do this: get a new copy of it by reinstalling the package:

sudo apt install --reinstall $(dpkg -S /usr/libexec/ayatana-indicator-notifications/ayatana-?otifications?service | cut -d: -f1)

Hi. I tried variations of the command, but they all said .service not found. I thought all service files ended with a .service, and not a -service. It’s like there are two separate service files: /etc/systemd/system/ ayatana and another service file in /usr/libexec/ayatana*/ayatana*.service; I’m not sure what the difference is, and can you tell me which should be the executable in Startup Programs?

anthony@anthony-OptiPlex-9010:/usr/libexec/ayatana-indicator-notifications$ ls
ayatana-indicator-notifications-service
ayatana-indicator-notifications.service
anthony@anthony-OptiPlex-9010:/usr/libexec/ayatana-indicator-notifications$ sudo pluma ayatana-indicator-notifications.service
[sudo] password for anthony: 
anthony@anthony-OptiPlex-9010:/usr/libexec/ayatana-indicator-notifications$ sudo rm ayatana-indicator-notifications.service
anthony@anthony-OptiPlex-9010:/usr/libexec/ayatana-indicator-notifications$ sudo rn ayatana-indicator-notifications-service ayatana-indicator-notifications.service
sudo: rn: command not found
anthony@anthony-OptiPlex-9010:/usr/libexec/ayatana-indicator-notifications$ sudo mv ayatana-indicator-notifications-service ayatana-indicator-notifications.service
anthony@anthony-OptiPlex-9010:/usr/libexec/ayatana-indicator-notifications$ systemctl start ayatana-indicator-notifications.service
==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ===
Authentication is required to start 'ayatana-indicator-notifications.service'.
Authenticating as: Anthony,,, (anthony)
Password: 
==== AUTHENTICATION COMPLETE ===
Failed to start ayatana-indicator-notifications.service: Unit ayatana-indicator-notifications.service not found.
anthony@anthony-OptiPlex-9010:/usr/libexec/ayatana-indicator-notifications$ sudo mv ayatana-indicator-notifications-service ayatana-indicator-notifications.service
mv: cannot stat 'ayatana-indicator-notifications-service': No such file or directory
anthony@anthony-OptiPlex-9010:/usr/libexec/ayatana-indicator-notifications$ 
anthony@anthony-OptiPlex-9010:/usr/libexec/ayatana-indicator-notifications$ sudo mv ayatana-indicator-notifications.service ayatana-indicator-notifications-service
anthony@anthony-OptiPlex-9010:/usr/libexec/ayatana-indicator-notifications$ 
 Then there's also mate-notify, which I've been told the daemon doesn't seem to start:

notify-send contents not read by Pluma; Seems error

Not a MATE person, so I’m answering the desire to fix your installation. It certainly is the case that to do so, reinstalling the application providing that file is the way to go. Certainly those files in /usr/libexec come from ayatana-indicator-notifications so reinstall that and you have the default set up.

Ok, tried purging ayatana-indicator-session, but still couldn’t get Preview for notifications in Control Center resulting in this error:

Ubuntu Mate Community post

This topic was automatically closed after 30 days. New replies are no longer allowed.