Bug 389011

Summary: No toolbar icons when run over SSH (libGL error: failed to load driver: swrast)
Product: [Applications] kate Reporter: Tristan Miller <psychonaut>
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED UPSTREAM    
Severity: normal    
Priority: NOR    
Version First Reported In: 17.12.0   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: KWrite running over SSH, with no toolbar and configure dialog icons

Description Tristan Miller 2018-01-15 16:02:49 UTC
Created attachment 109885 [details]
KWrite running over SSH, with no toolbar and configure dialog icons

When I run Kate or KWrite over an SSH connection with X forwarding, or via X2Go, the toolbar icons are not displayed, but rather are replaced with text labels.  Similarly, the icons in KWrite's Configure dialog are missing.  (See the attached screenshot.)  The following error message is displayed on the console when the application first starts up:

libGL error: failed to load driver: swrast

The problem does not seem to affect other KDE applications.
Comment 1 Tristan Miller 2018-01-25 08:49:59 UTC
(In reply to Tristan Miller from comment #0)
> The problem does not seem to affect other KDE applications.

I've just noticed that the problem also affects Okular.  This may be something related to the X server or video driver rather than KDE.  https://askubuntu.com/questions/745135/how-to-enable-indirect-glx-contexts-iglx-in-ubuntu-14-04-lts-with-nvidia-gfx seems vaguely relevant.
Comment 2 Tristan Miller 2018-01-25 10:21:07 UTC
Upon further testing I can confirm that this is a problem with the X server, or maybe with how it's configured by default on my distribution: <https://bugzilla.suse.com/show_bug.cgi?id=1032509>  Closing as this isn't a KDE problem.
Comment 3 Tristan Miller 2018-09-18 12:24:54 UTC
Correction: The X configuration wasn't the only issue.  It is also necessary to set XDG_CURRENT_DESKTOP=KDE before launching any KDE application, as described here: <https://forums.opensuse.org/showthread.php/526296-ssh-X-and-plasma>