Use the correct system theme

Hi, I built a snap but it looks awfully out of place theming-wise. It doesn’t use neither yaru or adwaita despite the gnome extension being installed. Is there a variable that needs to be set for that ? The deb and the flatpak versions both use a gtk theme.

Thanks !

Here is the snapcraft.yaml :

name: jellyfin
base: core24
version: '0.1'
summary: Single-line elevator pitch for your amazing snap
description: |
  This is my-snap's description. You have a paragraph or two to tell the
  most important story about your snap. Keep it under 100 words though,
  we live in tweetspace and your description wants to look good in the snap
  store.

grade: devel
confinement: strict

apps:
  jellyfin:
    extensions: [gnome]
    command: /usr/bin/jellyfinmediaplayer
    command-chain: [bin/desktop-launch]
    plugs:
      - network
      - desktop
      - x11
      - wayland
      - opengl

layout:
  /usr/share/alsa:
    bind: $SNAP/usr/share/alsa
  /usr/share/qt5:
    bind: $SNAP/usr/share/qt5
  /usr/lib/x86_64-linux-gnu/qt5:
    bind: $SNAP/usr/lib/x86_64-linux-gnu/qt5
  /usr/share/jellyfinmediaplayer:
    bind: $SNAP/usr/share/jellyfinmediaplayer

parts:
  desktop-qt5:
    source: https://github.com/ubuntu/snapcraft-desktop-helpers.git
    source-subdir: qt
    plugin: make
    make-parameters: ["FLAVOR=qt5"]
    build-packages:
      - build-essential
      - qtbase5-dev
      - dpkg-dev
    stage-packages:
      - libxkbcommon0
      - libxkbcommon-x11-0
      - fonts-ubuntu
      - dmz-cursor-theme
      - light-themes
      - adwaita-icon-theme
      - gnome-themes-extra
      - shared-mime-info
      - libqt5gui5
      - libgdk-pixbuf2.0-0
      - libqt5svg5
      - locales-all
      - xdg-user-dirs
      - fcitx-frontend-qt5

  jellyfin:
    after: [desktop-qt5]
    plugin: dump
    source: .
    stage-packages:
      - libqt5webengine5
      - libmpv2
      - libcec6
      - libsdl2-2.0-0
      - libqt5x11extras5
      - libqt5xml5
      - libglu1-mesa
      - libglut3.12
      - qml-module-qtwebengine
      - qml-module-qtwebchannel
      - qml-module-qtquick-controls
      - qtwayland5
      - libqt5webchannel5
      - libqt5x11extras5
      - libsdl2-2.0-0
      - libxrandr2
      - libcec6
      - libmpv2
      - alsa-utils
      - xkb-data
      - qtwebengine5-dev
      - libqt5webenginecore5
      - libqt5webenginewidgets5
      - libqt5webchannel5
      - qml-module-qtwebengine
    organize:
      usr/lib/*-linux-gnu/blas/*: usr/lib/
      usr/lib/*-linux-gnu/lapack/*: usr/lib/
      usr/lib/*-linux-gnu/pulseaudio/*: usr/lib/

    override-build: |
      dpkg-deb -x jellyfin.deb $SNAPCRAFT_PART_INSTALL

I’m guessing it’s the plugs, have you tried adding the gtk-3-themes and icon-themes plugs?

icon-themes isn’t about GTK themes, but it might be necessary if your app uses user icons.

Sadly adding these plugs didn’t change anything.