The GNOME Copy-Paste Manager
In Ubuntu, the GNOME Settings Daemon (GSD) is a collection of background services that manage the desktop environment. The gsd-clipboard plugin is a highly specific service designed to manage the clipboard (the temporary memory where copied text and images are stored) when integrating with certain types of virtual machines or remote desktop protocols, such as SPICE (Simple Protocol for Independent Computing Environments).
If you are running Ubuntu as a guest operating system inside a virtual machine manager like virt-manager or GNOME Boxes, this daemon ensures that when you press “Copy” on your host Windows machine, you can press “Paste” inside your Ubuntu virtual machine. However, if you are running Ubuntu natively “on bare metal” (directly installed on your computer’s hard drive) and you are not using SPICE to remote into other machines, this specific clipboard synchronization daemon is entirely useless. While it consumes very little memory, disabling unused daemons is a standard practice for creating a hyper-optimized, secure Linux environment with a minimal attack surface.
How to Disable the Gsd-clipboard Service
Because gsd-clipboard is loaded as a dynamic plugin by the main GNOME Settings Daemon, you cannot disable it using standard systemctl commands. You must remove its execution permissions.
- Open your Ubuntu Terminal.
- To disable the clipboard synchronization plugin, remove its execute permissions by running the following command:
sudo chmod -x /usr/libexec/gsd-clipboard
(Note: Depending on your specific version of Ubuntu, the plugin binary might be located at /usr/lib/gnome-settings-daemon/gsd-clipboard).
- Restart your machine, or log out of your current GNOME session and log back in to apply the changes.
GNOME will no longer load the remote clipboard management plugin upon startup.