Snap GTK restrictions

Hello, probably it’s some GTK restrictions, take a look at distinction of mouse cursors when an application running in host system and in snap sandbox on the same host.
std-mouse-cursor snap-mouse-cursor

Is it somehow connected with dbus restrictions of snap gnome platform? If it’s so, how to get the same look (mouse, decoration, etc.) for an application running in snap sandbox?
And maybe it’s close too (Apps from snap cannot access /usr/share/libdrm/amdgpu.ids): getting rid of “libdrm… No such” message is also connected in some way with snap internal restrictions?

Not sure if it’s related to dbus, gtk,… or snap itself. Any hints?

Hi yvs,

Thanks for your post, would you please provide more specific information. Which app are you testing? Is it QT based? What does your system look like: distro, GNOME/KDE Wayland, X11. Ideally to a level that it can be easily reproduced.

It’s a flutter snap built with the next settings

name: fmtr
base: core22
version: 0.1.28
summary: a system ping wrapper for network diagnostic
description: |
  A network diagnostic tool based on parsing system 'ping' output with functionality of 'traceroute' and look a bit of 'mtr'

architectures:
  - build-on: amd64
  - build-on: arm64
grade: stable
confinement: strict

apps:
  fmtr:
    command: fmtr
    extensions: [gnome]
    plugs:
      - network
      - network-control

parts:
  fmtr:
    plugin: flutter
    source-type: git
    source: https://github.com/yvs2014/fmtr
    flutter-target: lib/main.dart
    build-packages:
      - curl

#layout:
#  /usr/share/libdrm:
#    bind: $SNAP/gnome-platform/usr/share/libdrm

environment of host system:

% echo $XDG_SESSION_TYPE
wayland

% snap version

snap    2.60.3
snapd   2.60.3
series  16
ubuntu  23.04
kernel  6.2.0-34-generic

% lspci | grep VGA

05:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Renoir (rev c4)