Skip to content

No icons in KDE applications running outside Plasma #25762

Closed

Description

@ttuegel

Description

KDE applications do not have any icons when running outside the Plasma 5 desktop environment. Qt applications in general do not appear with the correct theme.

Technical details

Activity

  1. added
    0.kind: bug
    6.topic: qt/kde
    on May 13, 2017
  2. self-assigned this
    on May 13, 2017
  3. ttuegel commented on May 14, 2017

    @ttuegel
    MemberAuthor

    This is not a bug; this is how Qt 5 is supposed to work.

    Outside of Plasma, one must manually set the environment variable QT_QPA_PLATFORMTHEME environment variable to select a platform theme. Setting kde will mimic the Plasma theme. Setting qt5ct will allow using the qt5ct package to configure the theme.

  4. olejorgenb commented on Jun 3, 2017

    @olejorgenb
    Contributor

    Would be nice if that variable somehow got a sane default though. Okular for instance works ok without it (lots of icons missing, but not that big a deal actually). BUT - startup time is affected due to how icon lookup works: Without QT_QPA_PLATFORMTHEME set okular makes 400k+ stat calls looking for icons. With the variable set this is reduced to 9k and startup time is at least cut in half...

    EDIT: seems it's set if config.programs.qt5ct.enable is true.

  5. qknight commented on Feb 21, 2018

    @qknight
    Member

    @ttuegel i've tried to set it with qt5ct but i see this error message:

    nix-shell -p qt5ct
    

    inside this shell:

    qt5ct 
    This application failed to start because it could not find or load the Qt platform plugin "xcb"
    in "".
    
    Reinstalling the application may fix this problem.
    Aborted
    
    nixos-version 
    18.03pre124015.f59a0f7f1a6 (Impala)
    
  6. chrissound commented on Nov 25, 2018

    @chrissound

    Do I need any additional packages for icons to show? Does anyone know which ones?

    Output of QT_QPA_PLATFORMTHEME=kde dolphin:

    kf5.kio.core: Refilling KProtocolInfoFactory cache in the hope to find "stash"
    Icon theme "breeze" not found.
    Icon theme "breeze" not found.
    Error: standard icon theme "breeze" not found!
    kf5.kio.core: Refilling KProtocolInfoFactory cache in the hope to find "mtp"
    kf5.kio.core: Refilling KProtocolInfoFactory cache in the hope to find "mtp"
    kf5.kio.core: Refilling KProtocolInfoFactory cache in the hope to find "mtp"
    org.kde.dolphin: Ignore KIO url: QUrl("timeline:/today")
    org.kde.dolphin: Ignore KIO url: QUrl("timeline:/yesterday")
    org.kde.dolphin: Ignore KIO url: QUrl("timeline:/thismonth")
    org.kde.dolphin: Ignore KIO url: QUrl("timeline:/lastmonth")
    org.kde.dolphin: Ignore KIO url: QUrl("search:/documents")
    org.kde.dolphin: Ignore KIO url: QUrl("search:/images")
    org.kde.dolphin: Ignore KIO url: QUrl("search:/audio")
    org.kde.dolphin: Ignore KIO url: QUrl("search:/videos")
    qt.accessibility.core: Cannot create accessible child interface for object:  PlacesView(0x19b89c0)  index:  20
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

0.kind: bug6.topic: qt/kde

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions