I am trying to pack Etcher as a snap using electron’s prepared files as a starting point (not sure how to use core20 with the electron-builder). I got the following error with confinement: strict (it works with classic on Ubuntu18.04 and 20.04):
/snap/balena-etcher-electron/x1/desktop-common.sh: line 339: /usr/lib/x86_64-linux-gnu/glib-2.0/gio-querymodules: Permission denied
Then I used the personal-files interface to create read/write plugs to $HOME/snap/balena-etcher-electron/common/.cache, added LD_LIBRARY_PATH: $SNAP/usr/lib/x86_64-linux-gnu:$LD_LIBRARY_PATH to the environment because it didn’t know where libnode.so is and ended up with this error message:
(balena-etcher-electron.bin:56244): GLib-GIO-CRITICAL **: 16:47:59.125: g_settings_schema_source_lookup: assertion ‘source != NULL’ failed
[56244:0516/164759.127014:FATAL:memory.cc(22)] Out of memory. size=131072
/snap/balena-etcher-electron/x7/app/balena-etcher-electron: line 10: 56244 Trace/breakpoint trap (core dumped) “${script_dir}”/balena-etcher-electron.bin “$@”
Oops… Thanks, connecting it to the interface helped. Now it wants to use pkexec or kdesudo when you click on ‘Flash!’. Can this work with confinement: strict?
It looks like rpi-imager uses the udisks2 plug for writing. Etcher does not support that. At least based on the comments in this flatpak thread (they reach to the same stage Error: Unable to find pkexec or kdesudo.):
his application is (close to) impossible to run as Flatpak, right?
It runs almost fine with confinement: classic. It also uses Firefox to open links for some reason (Chrome is my default browser and it uses Chrome in strict). And when you start the program for the first time it gives the following error:
Cannot load module /usr/lib/x86_64-linux-gnu/gtk-3.0/3.0.0/immodules/im-ibus.so: /usr/lib/x86_64-linux-gnu/gtk-3.0/3.0.0/immodules/im-ibus.so: undefined symbol: ibus_input_context_set_client_commit_preedit
/usr/lib/x86_64-linux-gnu/gtk-3.0/3.0.0/immodules/im-ibus.so does not export GTK+ IM module API: /usr/lib/x86_64-linux-gnu/gtk-3.0/3.0.0/immodules/im-ibus.so: undefined symbol: ibus_input_context_set_client_commit_preedit
ERROR: /snap/balena-etcher-electron/x2/usr/lib/x86_64-linux-gnu/libgtk-3-0/gtk-query-immodules-3.0 exited abnormally with status 1
I just noticed that Etcher (balenaEtcher) is still not available for Ubuntu. This is the hands down best (so very important) ISO burning app for Linux.
Is there any progress after almost 4 years? What is the situation on it? Or is it so that Etcher cannot be snapped? Something else? Thanks so much in advance. So many must be wanting this on Ubuntu with a simple install from AppCenter.
The original post was a request for help with packaging problems (even though it was not solved). It might be helpful for future packagers and fits well in rhe snapcraft category.
Feel free to open a fresh topic in snap-requests for it though…