Copy icon-symbolic.svg to custom location for appindicator

Hi, people
I am making a snap for python application, that shows an icon in system tray using appindicator. When I run a snap on Ubuntu 18.04 - everything works fine and icon in tray shows correctly. But when I run it on Ubuntu 20.04, gnome-shell and appindicator extension are unable to find that icon for tray(my-app-symbolic.svg) and shows 3 dots instead of icon

I did some experiments and it turns out, that in Ubuntu 20.04 appindicator extension tries to find icon in /prime/usr/share/icons/hicolor/scalable/status/, but Snapcraft put it in /prime/share/icons/hicolor/scalable/status/

So, I manually copied this icon to /prime/usr/share/icons/hicolor/scalable/status/ using a ‘dump’ plugin and now everything works fine on 20.04:

    tray-icon:
      plugin: dump
      source: icons/
      organize:
        'my-app-symbolic.svg': usr/share/icons/hicolor/scalable/status/

So my question is: what is the most proper way to put this icon to custom location during snap build? Are there some better way to do that instead of using ‘dump’ plugin?

How are you building your parts? Perhaps you need to set your prefix to /usr? E.g. CMAKE_INSTALL_PREFIX=/usr for cmake.

I build using default python plugin provided by snapcraft