Icons not showing on sudo dolphin on 15.10

7,229

Solution 1

The root cause of the ops issue is a known bug in KDE affecting any application running under sudo.

The recommended work around is to

  1. Open Konsole and enter the following commands to edit the sudoers file:

    sudo visudo -f /etc/sudoers.d/workaround_kde5
    
  2. In the appearing editor add the line:

    Defaults env_keep += "KDE_SESSION_VERSION KDE_FULL_SESSION"
    
  3. Save and exit the editor.

For reasons unknown to the commenter these variables are required for proper icon loading. sudo/su strips them by default this line tells it not to.

Solution 2

I finally got icons working by installing the full kubuntu-desktop package, restarting, and logging into plasma once.

Logging out and back into gnome3 gave me a few icons.

Interestingly enough, dolphin4 gives all icons as expected, it's just the QT5 build of dolphin that doesn't have icons, (and consequently any package compiled with QT5 instead of Qt4 misbehaves).

Share:
7,229

Related videos on Youtube

Yohan Leafheart
Author by

Yohan Leafheart

PHP Coder since PHP 4.0

Updated on September 18, 2022

Comments

  • Yohan Leafheart
    Yohan Leafheart over 1 year

    Greetings again everyone, I update my system recently from 15.04 to 15.10. And among the many bizarre errors, when I open dolphin as root, by using kdesudo dolphin, no icons load. They do load normally on dolphin but not as root.

    EDIT: Another error happened now, I tried navigating on the elevated dolphin and this error popped.

    Error when trying to navigate

    Icons showing normally when running dolphin

    No icons when escalated as root

    • int_ua
      int_ua over 8 years
      IIRC, it's also not showing icons if started in an openbox session