Hi. I want to create a notification.service file so that systemd can run it and I can be notified about weather changes, something that used to happen. What should I put into the script, considering that usr/bin/notify-send is an empty file? I found the following systemd file and was wondering if it's okay--once I write a script for notify-send? The weather program is meteo-qt.
I didn't think it should be empty. The libnotify-bin search returned the text you see, but I reinstalled it anyway. While on a search to get notifications working, I installed the package ayatana-indicator-notifications and then in Ayatana Settings, Notifications was a selectable category. I ran daemon-reload and restarted. I'm under the impression that notifications could be created by either notify-send or ayatana-notifications for the weather program, meteo-qt, that I have.
I have another problem--I since I upgraded to Jammy, I haven't been able to use Advanced Menu (in one of the screenshots, Mate Menu is missing).
I ran the reinstall command for mate-menu, but I still can't get Advanced Menu working; the file, ~/.config/mate-menu/applications.list is still there.
Would you be so kind to post text output as text instead of a screenshot ?
Otherwise you rob me of the possibility to copy/paste parts of your output into my wiki's and I have to copytype everything by hand. In this case:
Error calling StartServiceByName for org.freedesktop.Notifications: Timeout was reached
and by typing this instead of being able to copy paste from your output, a typo is easily made.
So, please please please, don't post text as pictures !
It is extremely easy (and faster and less kB) to copy paste from terminal into a message on this board.
Anyway, it seems that your notification daemon is not running.
Could you copy/paste the output of the following commands in a reply ?
stat /usr/lib/mate-notification-daemon/mate-notification-daemon
cat /usr/share/dbus-1/services/org.freedesktop.mate.Notifications.service
The org.freedesktop.mate.Notifications.service should be like:
Hi. The org.freedesktop had extra text that I removed to make it the same as you said it should be. Now I'm going to try restarting the deamons and restarting
Ah, I see. The 3rd line of the Dbus Service file is incomplete.
it reads: Exec=/usr/lib/mate-notification-daemon/mate
but should be: Exec=/usr/lib/mate-notification-daemon/mate-notification-daemon
Hi. I'm having trouble with this issue again and hoping some new information will help. About the screenshots--I include them because it allows for understanding things instantly.
[1]+ Stopped sudo systemctl list-units --failed
anthony@anthony-OptiPlex-9010:~$ sudo service clamav-freshclam.service start
Failed to start clamav-freshclam.service.service: Unit clamav-freshclam.service.service not found.
anthony@anthony-OptiPlex-9010:~$ sudo service clamav-freshclam.service start
Failed to start clamav-freshclam.service.service: Unit clamav-freshclam.service.service not found.
anthony@anthony-OptiPlex-9010:~$ sudo service clamav-freshclam start
anthony@anthony-OptiPlex-9010:~$ sudo service org.freedesktop.Notifications start
Failed to start org.freedesktop.Notifications.service: Unit org.freedesktop.Notifications.service not found.
anthony@anthony-OptiPlex-9010:~$ sudo service org.freedesktop.Notifications start
Failed to start org.freedesktop.Notifications.service: Unit org.freedesktop.Notifications.service not found.
anthony@anthony-OptiPlex-9010:~$
Hi. The screenshots show the paths to the files, their names in Caja; I read that Dbus runs under systemd and that because of it, systemd should have its own version of the service name--so I thought the Caja screenshot should show a filename under systemd similar to .Notifications, but it doesn't.
I'm not interested in the freshclam.service--I was just experimenting with the systemctl list-units --failed command, hoping that I would find the name of the .Notification service, since variations resulted in the service not being found.
Thanks for your continued help--I will try what you suggested later today.
Hi. Here's the two commands; I thought the exec file was a typo because every time I have entered .service, it was with a period and not a hyphen--I fixed this mistake when it didn't work. I tried to start the service with both systemctl and through the service command--both reported not being able to find ayatana-indicators. The outputs have a period before service, so I was thinking they were looking for a .service file and not a -service; I thought that's what confused the computer.
anthony@anthony-OptiPlex-9010:~$ sudo service ayatana-indicator-notifications start
Failed to start ayatana-indicator-notifications.service: Unit ayatana-indicator-notifications.service not found.
anthony@anthony-OptiPlex-9010:~$ sudo systemctl start ayatana-indicator-notifications
Failed to start ayatana-indicator-notifications.service: Unit ayatana-indicator-notifications.service not found.