Binary not finding correct paths

Hi there,

I’m trying to build gnome-commander. The resulting snap file is built okay, however the binary won’t find it’s pixmaps:

$ gnome-commander
Gtk-Message: 23:25:27.976: Failed to load module “gail”
Gtk-Message: 23:25:27.980: Failed to load module “canberra-gtk-module”

** (gnome-commander:18995): WARNING **: 23:25:27.980: (…/atk-adaptor/bridge.c:1018):atk_bridge_adaptor_init: runtime check failed: (root)

** (gnome-commander:18995): WARNING **: 23:25:27.981: Die Grafik zum Dateityp konnte nicht geladen werden, Laden von …/pixmaps/gnome_cmd_arrow_up.xpm wird versucht

** (gnome-commander:18995): WARNING **: 23:25:27.981: Die Grafik kann nicht gefunden werden. Stellen Sie sicher, dass die Anwendung richtig installiert wurde oder gnome-commander aus dem Ordner gnome-commander-1.12.1/src/ ausgeführt wird

** (gnome-commander:18995): WARNING **: 23:25:27.981: Die Grafik zum Dateityp konnte nicht geladen werden, Laden von …/pixmaps/gnome_cmd_arrow_down.xpm wird versucht
[…]

This results in a segfault.

Installation paths are set in snapcraft.yaml as follows:
[…]
autotools-configure-parameters:
- --prefix=/usr
- --exec-prefix=/usr
- --datarootdir=/usr/share
[…]

Pixmaps are located here:

snapcraft-gnome-commander …/stage# ls -al
total 44
drwxr-xr-x 10 root root 4096 May 11 23:07 .
drwx------ 10 root root 4096 May 11 19:19 …
drwxr-xr-x 2 root root 4096 May 11 23:07 bin
drwxr-xr-x 5 root root 4096 May 11 19:25 data-dir
drwxr-xr-x 9 root root 4096 May 11 23:07 etc
-rw-r–r-- 3 root root 14 May 11 19:19 flavor-select
drwxr-xr-x 2 root root 4096 May 11 19:20 gnome-platform
drwxr-xr-x 2 root root 4096 May 11 19:19 lib
drwxr-xr-x 3 root root 4096 May 11 19:25 snap
drwxr-xr-x 6 root root 4096 May 11 23:07 usr
drwxr-xr-x 3 root root 4096 May 11 23:07 var
snapcraft-gnome-commander …/stage# cd usr/share/pixmaps/
snapcraft-gnome-commander …/stage/usr/share/pixmaps# ll
bash: ll: command not found
snapcraft-gnome-commander …/stage/usr/share/pixmaps# ls -al
total 36
drwxr-xr-x 3 root root 4096 May 11 23:07 .
drwxr-xr-x 26 root root 4096 May 11 23:07 …
drwxr-xr-x 5 root root 4096 May 11 23:07 gnome-commander
-rw-r–r-- 2 root root 13910 May 11 23:07 gnome-commander.svg
-rw-r–r-- 2 root root 842 Nov 12 2019 pstree16.xpm
-rw-r–r-- 2 root root 1674 Nov 12 2019 pstree32.xpm
snapcraft-gnome-commander …/stage/usr/share/pixmaps# cd gnome-commander
snapcraft-gnome-commander …/stage/usr/share/pixmaps/gnome-commander# ls -al
total 152
drwxr-xr-x 5 root root 4096 May 11 23:07 .
drwxr-xr-x 3 root root 4096 May 11 23:07 …
-rw-r–r-- 2 root root 784 May 11 23:07 copy_file_names.xpm
drwxr-xr-x 2 root root 4096 May 11 23:07 device-icons
-rw-r–r-- 2 root root 953 May 11 23:07 exec_wheel.xpm
drwxr-xr-x 2 root root 4096 May 11 23:07 file-type-icons
-rw-r–r-- 2 root root 655 May 11 23:07 flip-horizontal-16.xpm
-rw-r–r-- 2 root root 698 May 11 23:07 flip-vertical-16.xpm
-rw-r–r-- 2 root root 176 May 11 23:07 gnome_cmd_arrow_blank.xpm
-rw-r–r-- 2 root root 190 May 11 23:07 gnome_cmd_arrow_down.xpm
-rw-r–r-- 2 root root 188 May 11 23:07 gnome_cmd_arrow_up.xpm
-rw-r–r-- 2 root root 13910 May 11 23:07 gnome-commander.svg
-rw-r–r-- 2 root root 2164 May 11 23:07 gnome-commander-symbolic.svg
-rw-r–r-- 2 root root 16424 May 11 23:07 internal-viewer.svg
-rw-r–r-- 2 root root 746 May 11 23:07 mail-send.png
-rw-r–r-- 2 root root 695 May 11 23:07 menu_bookmark.xpm
drwxr-xr-x 2 root root 4096 May 11 23:07 mime-icons
-rw-r–r-- 2 root root 334 May 11 23:07 overlay_symlink.xpm
-rw-r–r-- 2 root root 220 May 11 23:07 overlay_umount.xpm
-rw-r–r-- 2 root root 406 May 11 23:07 pin.png
-rw-r–r-- 2 root root 1010 May 11 23:07 rotate-180-16.xpm
-rw-r–r-- 2 root root 740 May 11 23:07 rotate-270-16.xpm
-rw-r–r-- 2 root root 814 May 11 23:07 rotate-90-16.xpm
-rw-r–r-- 2 root root 26367 May 11 23:07 terminal.svg
-rw-r–r-- 2 root root 284 May 11 23:07 unpin.png
snapcraft-gnome-commander …/stage/usr/share/pixmaps/gnome-commander#

Gnome commander compiles and runs fine in Ubuntu 20.04 (with tiny modification), but not as a snap.
What can I do to use chosen paths?

Best regards

Stefan