To hide the "Printer added" notifications on Linux Mint 22.3, you have a few options:
This service is responsible for automatically detecting and adding network printers, which triggers the notifications. You can disable it with the following commands:
bashsudo systemctl stop cups-browsed sudo systemctl disable cups-browsed
After running these commands, reboot your system. This will prevent the automatic detection of new printers and stop the associated notifications. Note that this will not remove already installed printers, but it will prevent new ones from being auto-added and notified.
If the above does not work, you can also disable the Avahi daemon, which is used for local network service discovery (including printers):
bashsudo systemctl disable avahi-daemon.socket sudo systemctl disable avahi-daemon.service sudo systemctl mask avahi-daemon.socket sudo systemctl mask avahi-daemon.service
Reboot your system after applying these changes. Be aware that disabling Avahi may affect other network service discoveries on your system.
If you are using a GNOME-based environment (like Cinnamon), you can disable printer notifications specifically using the following command:
bashgsettings set org.gnome.desktop.notifications.application:/org/gnome/desktop/notifications/application/gnome-printers-panel/ enable false
This will turn off all printer-related notifications, but other system notifications will remain unaffected.
Note: If you only want to stop the notifications but keep the auto-detection of printers, the GNOME settings method is the most targeted solution. If you want to stop both the detection and the notifications, use the CUPS-Browsed or Avahi methods.
Would you like more details on any of these methods?
sudo systemctl disable avahi-daemon.socket
sudo systemctl disable avahi-daemon.service
sudo systemctl mask avahi-daemon.socket
sudo systemctl mask avahi-daemon.service