On one of my test systems, I have Linux Mint 17.1 Cinnamon installed. However, I still like to use KSnapshot, the screenshot application for KDE.
And that’s because it’s better than the equivalent application in Cinnamon.
The only problem is it crashes anytime I want to save a screenshot. And because Linux Mint Cinnamon does not have a bug reporting tool installed, the only way to find out why it’s crashing is to start it from the command line.
A sample crash “report” is shown below:
ksnapshot(6237)/kdeui (KIconLoader): Error: standard icon theme "oxygen" not found! ksnapshot(6237): No ksycoca4 database available! ksnapshot(6237)/kdecore (trader) KServiceTypeTrader::defaultOffers: KServiceTypeTrader: serviceType "KIPI/Plugin" not found ksnapshot(6237) KSnapshot::KSnapshot: Mode = 0 (ksnapshot:6237): Gtk-CRITICAL **: IA__gtk_widget_get_direction: assertion 'GTK_IS_WIDGET (widget)' failed (ksnapshot:6237): Gtk-CRITICAL **: IA__gtk_widget_get_direction: assertion 'GTK_IS_WIDGET (widget)' failed ksnapshot(6237): No ksycoca4 database available! ksnapshot(6237)/kdecore (trader) KServiceTypeTrader::defaultOffers: KServiceTypeTrader: serviceType "QImageIOPlugins" not found ksnapshot(6237) fileModule: Failed to load configured file module "kfilemodule" KCrash: Application 'ksnapshot' crashing... KCrash: Attempting to start from kdeinit KCrash: Connect sock_file=/home/kamit/.kde/socket-kamithu/kdeinit4__0 Warning: connect() failed: : No such file or directory KCrash: Attempting to start directly KCrash failed to exec(), errno = 2 Unable to start Dr. Konqi Not forwarding the crash to Apport.
From that, it looks like the system is missing key KDE libraries and plugins. The solution? Install them using sudo apt-get install -y kdelibs-bin kdelibs5-data kdelibs5-plugins.
Not that I’ve only observed this crashing on Linux Mint 17 and 17.1 Cinnamon. I’m running Fedora 22 Cinnamon on another computer with several KDE applications installed. So far, they’ve not being crashing.