Bug 389011 - No toolbar icons when run over SSH (libGL error: failed to load driver: swrast)
Summary: No toolbar icons when run over SSH (libGL error: failed to load driver: swrast)
Status: RESOLVED UPSTREAM
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: 17.12.0
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-15 16:02 UTC by Tristan Miller
Modified: 2018-09-18 12:24 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
KWrite running over SSH, with no toolbar and configure dialog icons (51.36 KB, image/png)
2018-01-15 16:02 UTC, Tristan Miller
Details

Note You need to log in before you can comment on or make changes to this bug.
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>