Copying NetBeans GUI components in KDE and Plasma 5

For some time now, it has not been possible to copy GUI components in the NetBeans GUI editor. Apparently, the KDE clipboard doesn't play well with NetBeans GUI copying. Until Plasma 5 arrived, the clipboard tray icon was provided by klipper and you could get GUI copying to work by just selecting Quit from the tray icon popup menu. Klipper was even nice enough to ask if you want it to start again automatically at next login. Of course, you didn't need to log out and log in again, you just called up krunner with Alt+F2 and typed klipper.

With Plasma 5 it is not so easy. The clipboard tray icon is now provided by a plasmoid residing in

/usr/share/plasma/plasmoids/org.kde.plasma.clipboard

This plasmoid doesn't have a Quit command. Instead, you have to get rid of it by removing the above directory, or as I prefer, move it out of Plasma's reach. That way, you can move it back if you need it for some reason. Since you need to be root to do this, you can move it into the root home directory:

  1. Open a Konsole window and become root.
  2. Go to the plasmoids directory:

    cd /usr/share/plasma/plasmoids

  3. Move away the clipboard plasmoid:

    mv org.kde.plasma.clipboard/ /root/

  4. Stop the Plasma Shell:

    killall plasmashell

  5. Quit the Konsole and start the Plasma Shell again with krunner:

    Alt+F2 plasmashell

The clipboard plasmoid is now gone but it will probably return when you install a plasma update. If that happens you have to do the above steps again.

You are now free to use klipper instead, when you are not in the process of copying GUI components.

There is an open (at the time of writing) bug filed for NetBeans, concerning this problem:

https://netbeans.org/bugzilla/show_bug.cgi?id=227226

Not sure if this really is a NetBeans bug, perhaps the bug is in KDE/Plasma, we'll probably know eventually.

Add new comment

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Refresh Type the characters you see in this picture. Type the characters you see in the picture; if you can't read them, submit the form and a new image will be generated. Not case sensitive.  Switch to audio verification.