How to start another instance of my app within the app?

Try without sudo and drop -u <youruser> as well.

Heh, nice, looks like strace segfaulted. IDK, make sure that strace package is installed and is in the latest available version from the repositories.

BTW> you do not need to paste screenshots, copy pasting text between ``` … ``` is sufficient.

sorry for the screenshot. yes, strace is installed and latest version.

1 Like

I have tried creating a run.sh script that launches my &SNAP/bin/FireflyLuciferin binary and then running that sh from my app…

Same issue.

The only possible option I have here is to use snap run myappid within my app

but beeing able to use snap run command requires devmode or classic confinement.

Is this alone a reason that can be accepted to put my app in classic confinement mode? Spawning more instances of the same app is crucial for my app functionality

Yes, as long as you simply keep doing the same thing in different ways the behavior won’t change I fear… I’d try to take jpackage out of the equation and use the java -jar <jarname> approach for a test…

Regarding classic, no, you will likely not get classic granted, see the requirements for it on the page below, your app would have to fit into one of the supported categories…

FWIW, strace works fine here, I can take a look. Have you published this version to edge maybe? How can I invoke the restart operation from a running app?

I really appreciate it.

I have released it now on the edge.

Once installed the app requires a minimum of configuration. Please start it and click full firmware.

Screenshot From 2024-12-04 10-37-48

then click save

if it asks for recording permisson please grant it.

a tray icon will appear, right click the tray icon → settings.

please click the “mode tab” change the theme as in the image below

click save button, this will trigger an app restart. (app restart uses the same command of spawning new instances but is easier to trigger. it basically launch the same command used for spawning new instances but once done, it exit)

every time you want to trigger an app restart, just change the theme as made before.

ok thanks for the answer. I tried doing it “the old way” by bundling the JRE and run java -jar…

it works but this is not a solution for me, I would consider this a workaround because it will always require me to update the snapcraft.yaml with the correct jdk version every time I update it and I will inevitably end having the entire jre instead of the stripped one.

I have a release pipeline that already does this thing, I would not like to add logics just for snap.

If you say “it works” do you refer to the spawning of a new instance or just that the packaging worked ?

everything works including the “spawning of the new instances” buy as I said it’s a workaround that I don’t like, not a solution :slight_smile:

Well, then jpackage (or it’s interaction with the snap environment (or the modifications it does to your app)) is clearly the issue here, that helps to pinpoint the problem at least…

1 Like

Isn’t snap supposed to output an error if there is an error? I’m still struggling in understanding what is the problem. Ok it’s something related to jpackage, but what is it? :slight_smile:

Snap will forward whatever your binary throws out on stderr and stdout … For snap confinement related bits (i.e. apparmor or seccomp) you get the respective errors in the journal for which you can use snappy-debug to then get suggestions on how to solve them…

Looks like your app simply doesn’t print any errors to stderr/out when the issue happens (which is why I initially suggested adding prints to the function involved)

here’s the log from strace capturing the moment I selected save & close after changing the theme:

/usr/bin/strace: Process 2089179 attached
/usr/bin/strace: Process 2089180 attached
[Instance #1] 12:42:06.988 [JavaFX Application Thread] INFO  o.dpsoftware.managers.StorageManager - tooltip.theme
[Instance #1] 12:42:06.990 [JavaFX Application Thread] INFO  org.dpsoftware.NativeExecutor - Restarting instance
[Instance #1] 12:42:06.990 [JavaFX Application Thread] INFO  org.dpsoftware.NativeExecutor - Executing cmd=[/bin/sh, -c, /snap/fireflyluciferin/4/bin/FireflyLuciferin, 1]
/usr/bin/strace: Process 2089185 attached
[pid 2089185] execve("/snap/fireflyluciferin/4/lib/runtime/lib/jspawnhelper", ["/snap/fireflyluciferin/4/lib/run"..., "23.0.1+11", "36:37:39"], ["SHELL=/usr/bin/zsh", "SESSION_MANAGER=local/galeon:@/t"..., "__EGL_EXTERNAL_PLATFORM_CONFIG_D"..., "__EGL_VENDOR_LIBRARY_DIRS=/snap/"..., "SNAP_REVISION=4", "COLORTERM=truecolor", "XDG_CONFIG_DIRS=/snap/fireflyluc"..., "SUDO_GID=1000", "XDG_MENU_PREFIX=gnome-", "KWIN_TRIPLE_BUFFER=1", "SNAP_REAL_HOME=/home/maciek", "VK_LAYER_PATH=/snap/fireflylucif"..., "GNOME_KEYRING_CONTROL=/run/user/"..., "SNAP_USER_COMMON=/home/maciek/sn"..., "MOZ_X11_EGL=1", "FONTCONFIG_PATH=/snap/fireflyluc"..., "LC_ADDRESS=pl_PL.UTF-8", "SSH_AUTH_SOCK=/run/user/1000/gcr"..., "XDG_DATA_HOME=/home/maciek/snap/"..., "GNOTIFICATION_BACKEND=freedeskto"..., "PIPEWIRE_MODULE_DIR=/snap/firefl"..., "XDG_CONFIG_HOME=/home/maciek/sna"..., "XCURSOR_PATH=/snap/fireflylucife"..., "MEMORY_PRESSURE_WRITE=c29tZSAyMD"..., "SNAP_INSTANCE_KEY=", "SUDO_COMMAND=/usr/bin/strace -u "..., "XMODIFIERS=@im=ibus", "DESKTOP_SESSION=gnome", "LC_MONETARY=pl_PL.UTF-8", "GDK_PIXBUF_MODULE_FILE=/home/mac"..., "SUDO_USER=maciek", "EDITOR=emacsclient -t -a ''", "SNAP_EUID=1000", "PWD=/home/maciek", "ALSA_CONFIG_PATH=/snap/fireflylu"..., "LOGNAME=root", "XDG_SESSION_DESKTOP=gnome", "XDG_SESSION_TYPE=wayland", "SYSTEMD_EXEC_PID=2624", "SUDO_HOME=/home/maciek", "SPA_PLUGIN_DIR=/snap/fireflyluci"..., "XAUTHORITY=/run/user/1000/.mutte"..., "TEMPDIR=/tmp", "SNAP_CONTEXT=_2jX0ra54iDbofJm6Fr"..., "MOTD_SHOWN=pam", "GST_PLUGIN_SCANNER=/snap/firefly"..., "LD_PRELOAD=:/snap/fireflylucifer"..., "GDM_LANG=en_US.UTF-8", "GI_TYPELIB_PATH=/snap/fireflyluc"..., "HOME=/home/maciek/snap/fireflylu"..., "USERNAME=maciek", "LANG=en_US.UTF-8", "LC_PAPER=pl_PL.UTF-8", "XDG_CURRENT_DESKTOP=GNOME", "MEMORY_PRESSURE_WATCH=/sys/fs/cg"..., "VTE_VERSION=7802", "WAYLAND_DISPLAY=wayland-0", "NOTIFY_IGNORE_PORTAL=1", "SNAP_ARCH=amd64", "SNAP_INSTANCE_NAME=fireflylucife"..., "SNAP_USER_DATA=/home/maciek/snap"..., "DISABLE_WAYLAND=1", "TMPDIR=/run/user/1000/snap.firef"..., "DRIRC_CONFIGDIR=/snap/fireflyluc"..., "GNOME_TERMINAL_SCREEN=/org/gnome"..., "SNAP_DESKTOP_RUNTIME=/snap/firef"..., "SNAP_LAUNCHER_ARCH_TRIPLET=x86_6"..., "SNAP_REEXEC=", "SNAP_UID=1000", "PIPEWIRE_CONFIG_DIR=/snap/firefl"..., "XDG_CACHE_HOME=/home/maciek/snap"..., "GNOME_SETUP_DISPLAY=:1", "XDG_SESSION_CLASS=user", "LIBGWEATHER_LOCATIONS_PATH=/snap"..., "PYTHONPATH=/snap/fireflyluciferi"..., "TERM=gnome-256color", "GTK_PATH=/snap/fireflyluciferin/"..., "XLOCALEDIR=/snap/fireflyluciferi"..., "LIBTHAI_DICTDIR=/snap/fireflyluc"..., "USER=root", "SNAP=/snap/fireflyluciferin/4", "GNOME_TERMINAL_SERVICE=:1.748", "PLASMA_USE_QT_SCALING=1", "SNAP_COMMON=/var/snap/fireflyluc"..., "SNAP_VERSION=2.17.18", "DISPLAY=:0", "SHLVL=1", "GDK_PIXBUF_MODULEDIR=/snap/firef"..., "MOZ_ENABLE_WAYLAND=1", "LOCPATH=/snap/fireflyluciferin/4"..., "SNAP_LIBRARY_PATH=/var/lib/snapd"..., "PAGER=less", "SNAP_COOKIE=_2jX0ra54iDbofJm6Fre"..., "LC_TELEPHONE=pl_PL.UTF-8", "QT_IM_MODULE=ibus", "LC_MEASUREMENT=pl_PL.UTF-8", "LIBGL_DRIVERS_PATH=/snap/firefly"..., "SNAP_DATA=/var/snap/fireflylucif"..., "GST_PLUGIN_PATH=/snap/fireflyluc"..., "LD_LIBRARY_PATH=/var/lib/snapd/l"..., "XDG_RUNTIME_DIR=/run/user/1000/s"..., "DEBUGINFOD_URLS=https://debuginf"..., "LIBVA_DRIVERS_PATH=/snap/firefly"..., "LC_TIME=pl_PL.UTF-8", "GST_PLUGIN_SYSTEM_PATH=/snap/fir"..., "FONTCONFIG_FILE=/snap/fireflyluc"..., "SNAP_NAME=fireflyluciferin", "XDG_DATA_DIRS=/home/maciek/snap/"..., "PATH=/snap/fireflyluciferin/4/us"..., "GTK_USE_PORTAL=1", "GDMSESSION=gnome", "SUDO_UID=1000", "GTK_IM_MODULE_FILE=/home/maciek/"..., "DBUS_SESSION_BUS_ADDRESS=unix:pa"..., "HG=/usr/bin/hg", "MAIL=/var/spool/mail/maciek", "GIO_MODULE_DIR=/home/maciek/snap"..., "PULSE_SERVER=unix:/run/user/1000"..., "XKB_CONFIG_ROOT=/snap/fireflyluc"..., "LC_NUMERIC=pl_PL.UTF-8", "OLDPWD=/home/maciek", "_JPACKAGE_LAUNCHER=1430744617329"..., "GDK_BACKEND=x11"]) = 0
[pid 2089185] execve("/bin/sh", ["/bin/sh", "-c", "/snap/fireflyluciferin/4/bin/Fir"..., "1"], ["SHELL=/usr/bin/zsh", "SESSION_MANAGER=local/galeon:@/t"..., "__EGL_EXTERNAL_PLATFORM_CONFIG_D"..., "__EGL_VENDOR_LIBRARY_DIRS=/snap/"..., "SNAP_REVISION=4", "COLORTERM=truecolor", "XDG_CONFIG_DIRS=/snap/fireflyluc"..., "SUDO_GID=1000", "XDG_MENU_PREFIX=gnome-", "KWIN_TRIPLE_BUFFER=1", "SNAP_REAL_HOME=/home/maciek", "VK_LAYER_PATH=/snap/fireflylucif"..., "GNOME_KEYRING_CONTROL=/run/user/"..., "SNAP_USER_COMMON=/home/maciek/sn"..., "MOZ_X11_EGL=1", "FONTCONFIG_PATH=/snap/fireflyluc"..., "LC_ADDRESS=pl_PL.UTF-8", "SSH_AUTH_SOCK=/run/user/1000/gcr"..., "XDG_DATA_HOME=/home/maciek/snap/"..., "GNOTIFICATION_BACKEND=freedeskto"..., "PIPEWIRE_MODULE_DIR=/snap/firefl"..., "XDG_CONFIG_HOME=/home/maciek/sna"..., "XCURSOR_PATH=/snap/fireflylucife"..., "MEMORY_PRESSURE_WRITE=c29tZSAyMD"..., "SNAP_INSTANCE_KEY=", "SUDO_COMMAND=/usr/bin/strace -u "..., "XMODIFIERS=@im=ibus", "DESKTOP_SESSION=gnome", "LC_MONETARY=pl_PL.UTF-8", "GDK_PIXBUF_MODULE_FILE=/home/mac"..., "SUDO_USER=maciek", "EDITOR=emacsclient -t -a ''", "SNAP_EUID=1000", "PWD=/home/maciek", "ALSA_CONFIG_PATH=/snap/fireflylu"..., "LOGNAME=root", "XDG_SESSION_DESKTOP=gnome", "XDG_SESSION_TYPE=wayland", "SYSTEMD_EXEC_PID=2624", "SUDO_HOME=/home/maciek", "SPA_PLUGIN_DIR=/snap/fireflyluci"..., "XAUTHORITY=/run/user/1000/.mutte"..., "TEMPDIR=/tmp", "SNAP_CONTEXT=_2jX0ra54iDbofJm6Fr"..., "MOTD_SHOWN=pam", "GST_PLUGIN_SCANNER=/snap/firefly"..., "LD_PRELOAD=:/snap/fireflylucifer"..., "GDM_LANG=en_US.UTF-8", "GI_TYPELIB_PATH=/snap/fireflyluc"..., "HOME=/home/maciek/snap/fireflylu"..., "USERNAME=maciek", "LANG=en_US.UTF-8", "LC_PAPER=pl_PL.UTF-8", "XDG_CURRENT_DESKTOP=GNOME", "MEMORY_PRESSURE_WATCH=/sys/fs/cg"..., "VTE_VERSION=7802", "WAYLAND_DISPLAY=wayland-0", "NOTIFY_IGNORE_PORTAL=1", "SNAP_ARCH=amd64", "SNAP_INSTANCE_NAME=fireflylucife"..., "SNAP_USER_DATA=/home/maciek/snap"..., "DISABLE_WAYLAND=1", "TMPDIR=/run/user/1000/snap.firef"..., "DRIRC_CONFIGDIR=/snap/fireflyluc"..., "GNOME_TERMINAL_SCREEN=/org/gnome"..., "SNAP_DESKTOP_RUNTIME=/snap/firef"..., "SNAP_LAUNCHER_ARCH_TRIPLET=x86_6"..., "SNAP_REEXEC=", "SNAP_UID=1000", "PIPEWIRE_CONFIG_DIR=/snap/firefl"..., "XDG_CACHE_HOME=/home/maciek/snap"..., "GNOME_SETUP_DISPLAY=:1", "XDG_SESSION_CLASS=user", "LIBGWEATHER_LOCATIONS_PATH=/snap"..., "PYTHONPATH=/snap/fireflyluciferi"..., "TERM=gnome-256color", "GTK_PATH=/snap/fireflyluciferin/"..., "XLOCALEDIR=/snap/fireflyluciferi"..., "LIBTHAI_DICTDIR=/snap/fireflyluc"..., "USER=root", "SNAP=/snap/fireflyluciferin/4", "GNOME_TERMINAL_SERVICE=:1.748", "PLASMA_USE_QT_SCALING=1", "SNAP_COMMON=/var/snap/fireflyluc"..., "SNAP_VERSION=2.17.18", "DISPLAY=:0", "SHLVL=1", "GDK_PIXBUF_MODULEDIR=/snap/firef"..., "MOZ_ENABLE_WAYLAND=1", "LOCPATH=/snap/fireflyluciferin/4"..., "SNAP_LIBRARY_PATH=/var/lib/snapd"..., "PAGER=less", "SNAP_COOKIE=_2jX0ra54iDbofJm6Fre"..., "LC_TELEPHONE=pl_PL.UTF-8", "QT_IM_MODULE=ibus", "LC_MEASUREMENT=pl_PL.UTF-8", "LIBGL_DRIVERS_PATH=/snap/firefly"..., "SNAP_DATA=/var/snap/fireflylucif"..., "GST_PLUGIN_PATH=/snap/fireflyluc"..., "LD_LIBRARY_PATH=/var/lib/snapd/l"..., "XDG_RUNTIME_DIR=/run/user/1000/s"..., "DEBUGINFOD_URLS=https://debuginf"..., "LIBVA_DRIVERS_PATH=/snap/firefly"..., "LC_TIME=pl_PL.UTF-8", "GST_PLUGIN_SYSTEM_PATH=/snap/fir"..., "FONTCONFIG_FILE=/snap/fireflyluc"..., "SNAP_NAME=fireflyluciferin", "XDG_DATA_DIRS=/home/maciek/snap/"..., "PATH=/snap/fireflyluciferin/4/us"..., "GTK_USE_PORTAL=1", "GDMSESSION=gnome", "SUDO_UID=1000", "GTK_IM_MODULE_FILE=/home/maciek/"..., "DBUS_SESSION_BUS_ADDRESS=unix:pa"..., "HG=/usr/bin/hg", "MAIL=/var/spool/mail/maciek", "GIO_MODULE_DIR=/home/maciek/snap"..., "PULSE_SERVER=unix:/run/user/1000"..., "XKB_CONFIG_ROOT=/snap/fireflyluc"..., "LC_NUMERIC=pl_PL.UTF-8", "OLDPWD=/home/maciek", "_JPACKAGE_LAUNCHER=1430744617329"..., "GDK_BACKEND=x11"]) = 0
[Instance #1] 12:42:06.995 [JavaFX Application Thread] INFO  org.dpsoftware.NativeExecutor - CLEAN EXIT
/usr/bin/strace: Process 2089186 attached
/usr/bin/strace: Process 2089187 attached
[pid 2089187] execve("/snap/fireflyluciferin/4/bin/FireflyLuciferin", ["/snap/fireflyluciferin/4/bin/Fir"...], ["SUDO_GID=1000", "PLASMA_USE_QT_SCALING=1", "MAIL=/var/spool/mail/maciek", "__EGL_VENDOR_LIBRARY_DIRS=/snap/"..., "GNOTIFICATION_BACKEND=freedeskto"..., "SNAP_INSTANCE_KEY=", "USER=root", "SNAP_COMMON=/var/snap/fireflyluc"..., "LC_TIME=pl_PL.UTF-8", "MOZ_X11_EGL=1", "FONTCONFIG_PATH=/snap/fireflyluc"..., "LIBVA_DRIVERS_PATH=/snap/firefly"..., "GIO_MODULE_DIR=/home/maciek/snap"..., "XDG_SESSION_TYPE=wayland", "TEMPDIR=/tmp", "SNAP_UID=1000", "XDG_CACHE_HOME=/home/maciek/snap"..., "SHLVL=1", "LD_LIBRARY_PATH=/var/lib/snapd/l"..., "MOTD_SHOWN=pam", "HOME=/home/maciek/snap/fireflylu"..., "XLOCALEDIR=/snap/fireflyluciferi"..., "MOZ_ENABLE_WAYLAND=1", "SNAP_LIBRARY_PATH=/var/lib/snapd"..., "OLDPWD=/home/maciek", "DESKTOP_SESSION=gnome", "SUDO_HOME=/home/maciek", "GI_TYPELIB_PATH=/snap/fireflyluc"..., "SNAP_USER_DATA=/home/maciek/snap"..., "LIBGWEATHER_LOCATIONS_PATH=/snap"..., "GTK_PATH=/snap/fireflyluciferin/"..., "GTK_IM_MODULE_FILE=/home/maciek/"..., "HG=/usr/bin/hg", "PAGER=less", "LC_MONETARY=pl_PL.UTF-8", "SYSTEMD_EXEC_PID=2624", "DBUS_SESSION_BUS_ADDRESS=unix:pa"..., "SNAP_REVISION=4", "COLORTERM=truecolor", "GNOME_KEYRING_CONTROL=/run/user/"..., "DEBUGINFOD_URLS=https://debuginf"..., "SPA_PLUGIN_DIR=/snap/fireflyluci"..., "GST_PLUGIN_SCANNER=/snap/firefly"..., "WAYLAND_DISPLAY=wayland-0", "TMPDIR=/run/user/1000/snap.firef"..., "PIPEWIRE_CONFIG_DIR=/snap/firefl"..., "SUDO_UID=1000", "LOGNAME=root", "XKB_CONFIG_ROOT=/snap/fireflyluc"..., "SNAP_CONTEXT=_2jX0ra54iDbofJm6Fr"..., "PULSE_SERVER=unix:/run/user/1000"..., "MEMORY_PRESSURE_WATCH=/sys/fs/cg"..., "XDG_SESSION_CLASS=user", "SNAP_VERSION=2.17.18", "USERNAME=maciek", "TERM=gnome-256color", "SNAP_INSTANCE_NAME=fireflylucife"..., "PATH=/snap/fireflyluciferin/4/us"..., "SESSION_MANAGER=local/galeon:@/t"..., "GDM_LANG=en_US.UTF-8", "NOTIFY_IGNORE_PORTAL=1", "XDG_MENU_PREFIX=gnome-", "LC_ADDRESS=pl_PL.UTF-8", "GNOME_TERMINAL_SCREEN=/org/gnome"..., "GNOME_SETUP_DISPLAY=:1", "SNAP_DATA=/var/snap/fireflylucif"..., "XDG_RUNTIME_DIR=/run/user/1000/s"..., "GST_PLUGIN_SYSTEM_PATH=/snap/fir"..., "GDK_BACKEND=x11", "__EGL_EXTERNAL_PLATFORM_CONFIG_D"..., "DISPLAY=:0", "LOCPATH=/snap/fireflyluciferin/4"..., "_JPACKAGE_LAUNCHER=1430744617329"..., "LD_PRELOAD=:/snap/fireflylucifer"..., "LANG=en_US.UTF-8", "XDG_CURRENT_DESKTOP=GNOME", "SNAP_DESKTOP_RUNTIME=/snap/firef"..., "LC_TELEPHONE=pl_PL.UTF-8", "XDG_DATA_HOME=/home/maciek/snap/"..., "XDG_CONFIG_HOME=/home/maciek/sna"..., "XMODIFIERS=@im=ibus", "XDG_SESSION_DESKTOP=gnome", "XAUTHORITY=/run/user/1000/.mutte"..., "GNOME_TERMINAL_SERVICE=:1.748", "SNAP_USER_COMMON=/home/maciek/sn"..., "SSH_AUTH_SOCK=/run/user/1000/gcr"..., "SUDO_COMMAND=/usr/bin/strace -u "..., "SNAP_ARCH=amd64", "SNAP_COOKIE=_2jX0ra54iDbofJm6Fre"..., "SHELL=/usr/bin/zsh", "DISABLE_WAYLAND=1", "GDK_PIXBUF_MODULEDIR=/snap/firef"..., "GST_PLUGIN_PATH=/snap/fireflyluc"..., "SNAP_REEXEC=", "GDMSESSION=gnome", "SUDO_USER=maciek", "FONTCONFIG_FILE=/snap/fireflyluc"..., "SNAP_NAME=fireflyluciferin", "VK_LAYER_PATH=/snap/fireflylucif"..., "PIPEWIRE_MODULE_DIR=/snap/firefl"..., "XCURSOR_PATH=/snap/fireflylucife"..., "LC_MEASUREMENT=pl_PL.UTF-8", "GDK_PIXBUF_MODULE_FILE=/home/mac"..., "DRIRC_CONFIGDIR=/snap/fireflyluc"..., "SNAP_LAUNCHER_ARCH_TRIPLET=x86_6"..., "QT_IM_MODULE=ibus", "PWD=/home/maciek", "XDG_CONFIG_DIRS=/snap/fireflyluc"..., "SNAP_REAL_HOME=/home/maciek", "LIBTHAI_DICTDIR=/snap/fireflyluc"..., "XDG_DATA_DIRS=/home/maciek/snap/"..., "KWIN_TRIPLE_BUFFER=1", "SNAP_EUID=1000", "ALSA_CONFIG_PATH=/snap/fireflylu"..., "PYTHONPATH=/snap/fireflyluciferi"..., "SNAP=/snap/fireflyluciferin/4", "LC_NUMERIC=pl_PL.UTF-8", "LC_PAPER=pl_PL.UTF-8", "GTK_USE_PORTAL=1", "MEMORY_PRESSURE_WRITE=c29tZSAyMD"..., "VTE_VERSION=7802", "EDITOR=emacsclient -t -a ''", "LIBGL_DRIVERS_PATH=/snap/firefly"...]) = 0
/usr/bin/strace: Process 2089188 attached
/usr/bin/strace: Process 2089189 attached
[pid 2089189] execve("/bin/sh", ["sh", "-c", "--", "rpm --queryformat '%{NAME}' -qf "...], ["SUDO_GID=1000", "PLASMA_USE_QT_SCALING=1", "MAIL=/var/spool/mail/maciek", "__EGL_VENDOR_LIBRARY_DIRS=/snap/"..., "GNOTIFICATION_BACKEND=freedeskto"..., "SNAP_INSTANCE_KEY=", "USER=root", "SNAP_COMMON=/var/snap/fireflyluc"..., "LC_TIME=pl_PL.UTF-8", "MOZ_X11_EGL=1", "FONTCONFIG_PATH=/snap/fireflyluc"..., "LIBVA_DRIVERS_PATH=/snap/firefly"..., "GIO_MODULE_DIR=/home/maciek/snap"..., "XDG_SESSION_TYPE=wayland", "TEMPDIR=/tmp", "SNAP_UID=1000", "XDG_CACHE_HOME=/home/maciek/snap"..., "SHLVL=1", "LD_LIBRARY_PATH=/var/lib/snapd/l"..., "MOTD_SHOWN=pam", "HOME=/home/maciek/snap/fireflylu"..., "XLOCALEDIR=/snap/fireflyluciferi"..., "MOZ_ENABLE_WAYLAND=1", "SNAP_LIBRARY_PATH=/var/lib/snapd"..., "OLDPWD=/home/maciek", "DESKTOP_SESSION=gnome", "SUDO_HOME=/home/maciek", "GI_TYPELIB_PATH=/snap/fireflyluc"..., "SNAP_USER_DATA=/home/maciek/snap"..., "LIBGWEATHER_LOCATIONS_PATH=/snap"..., "GTK_PATH=/snap/fireflyluciferin/"..., "GTK_IM_MODULE_FILE=/home/maciek/"..., "HG=/usr/bin/hg", "PAGER=less", "LC_MONETARY=pl_PL.UTF-8", "SYSTEMD_EXEC_PID=2624", "DBUS_SESSION_BUS_ADDRESS=unix:pa"..., "SNAP_REVISION=4", "COLORTERM=truecolor", "GNOME_KEYRING_CONTROL=/run/user/"..., "DEBUGINFOD_URLS=https://debuginf"..., "SPA_PLUGIN_DIR=/snap/fireflyluci"..., "GST_PLUGIN_SCANNER=/snap/firefly"..., "WAYLAND_DISPLAY=wayland-0", "TMPDIR=/run/user/1000/snap.firef"..., "PIPEWIRE_CONFIG_DIR=/snap/firefl"..., "SUDO_UID=1000", "LOGNAME=root", "XKB_CONFIG_ROOT=/snap/fireflyluc"..., "SNAP_CONTEXT=_2jX0ra54iDbofJm6Fr"..., "PULSE_SERVER=unix:/run/user/1000"..., "MEMORY_PRESSURE_WATCH=/sys/fs/cg"..., "XDG_SESSION_CLASS=user", "SNAP_VERSION=2.17.18", "USERNAME=maciek", "TERM=gnome-256color", "SNAP_INSTANCE_NAME=fireflylucife"..., "PATH=/snap/fireflyluciferin/4/us"..., "SESSION_MANAGER=local/galeon:@/t"..., "GDM_LANG=en_US.UTF-8", "NOTIFY_IGNORE_PORTAL=1", "XDG_MENU_PREFIX=gnome-", "LC_ADDRESS=pl_PL.UTF-8", "GNOME_TERMINAL_SCREEN=/org/gnome"..., "GNOME_SETUP_DISPLAY=:1", "SNAP_DATA=/var/snap/fireflylucif"..., "XDG_RUNTIME_DIR=/run/user/1000/s"..., "GST_PLUGIN_SYSTEM_PATH=/snap/fir"..., "GDK_BACKEND=x11", "__EGL_EXTERNAL_PLATFORM_CONFIG_D"..., "DISPLAY=:0", "LOCPATH=/snap/fireflyluciferin/4"..., "_JPACKAGE_LAUNCHER=1430744617329"..., "LD_PRELOAD=:/snap/fireflylucifer"..., "LANG=en_US.UTF-8", "XDG_CURRENT_DESKTOP=GNOME", "SNAP_DESKTOP_RUNTIME=/snap/firef"..., "LC_TELEPHONE=pl_PL.UTF-8", "XDG_DATA_HOME=/home/maciek/snap/"..., "XDG_CONFIG_HOME=/home/maciek/sna"..., "XMODIFIERS=@im=ibus", "XDG_SESSION_DESKTOP=gnome", "XAUTHORITY=/run/user/1000/.mutte"..., "GNOME_TERMINAL_SERVICE=:1.748", "SNAP_USER_COMMON=/home/maciek/sn"..., "SSH_AUTH_SOCK=/run/user/1000/gcr"..., "SUDO_COMMAND=/usr/bin/strace -u "..., "SNAP_ARCH=amd64", "SNAP_COOKIE=_2jX0ra54iDbofJm6Fre"..., "SHELL=/usr/bin/zsh", "DISABLE_WAYLAND=1", "GDK_PIXBUF_MODULEDIR=/snap/firef"..., "GST_PLUGIN_PATH=/snap/fireflyluc"..., "SNAP_REEXEC=", "GDMSESSION=gnome", "SUDO_USER=maciek", "FONTCONFIG_FILE=/snap/fireflyluc"..., "SNAP_NAME=fireflyluciferin", "VK_LAYER_PATH=/snap/fireflylucif"..., "PIPEWIRE_MODULE_DIR=/snap/firefl"..., "XCURSOR_PATH=/snap/fireflylucife"..., "LC_MEASUREMENT=pl_PL.UTF-8", "GDK_PIXBUF_MODULE_FILE=/home/mac"..., "DRIRC_CONFIGDIR=/snap/fireflyluc"..., "SNAP_LAUNCHER_ARCH_TRIPLET=x86_6"..., "QT_IM_MODULE=ibus", "PWD=/home/maciek", "XDG_CONFIG_DIRS=/snap/fireflyluc"..., "SNAP_REAL_HOME=/home/maciek", "LIBTHAI_DICTDIR=/snap/fireflyluc"..., "XDG_DATA_DIRS=/home/maciek/snap/"..., "KWIN_TRIPLE_BUFFER=1", "SNAP_EUID=1000", "ALSA_CONFIG_PATH=/snap/fireflylu"..., "PYTHONPATH=/snap/fireflyluciferi"..., "SNAP=/snap/fireflyluciferin/4", "LC_NUMERIC=pl_PL.UTF-8", "LC_PAPER=pl_PL.UTF-8", "GTK_USE_PORTAL=1", "MEMORY_PRESSURE_WRITE=c29tZSAyMD"..., "VTE_VERSION=7802", "EDITOR=emacsclient -t -a ''", "LIBGL_DRIVERS_PATH=/snap/firefly"...]) = 0
[pid 2089189] +++ exited with 127 +++
[pid 2089188] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=2089189, si_uid=1000, si_status=127, si_utime=0, si_stime=0} ---
/usr/bin/strace: Process 2089191 attached
[pid 2089191] execve("/bin/sh", ["sh", "-c", "--", "dpkg -S '/snap/fireflyluciferin/"...], ["SUDO_GID=1000", "PLASMA_USE_QT_SCALING=1", "MAIL=/var/spool/mail/maciek", "__EGL_VENDOR_LIBRARY_DIRS=/snap/"..., "GNOTIFICATION_BACKEND=freedeskto"..., "SNAP_INSTANCE_KEY=", "USER=root", "SNAP_COMMON=/var/snap/fireflyluc"..., "LC_TIME=pl_PL.UTF-8", "MOZ_X11_EGL=1", "FONTCONFIG_PATH=/snap/fireflyluc"..., "LIBVA_DRIVERS_PATH=/snap/firefly"..., "GIO_MODULE_DIR=/home/maciek/snap"..., "XDG_SESSION_TYPE=wayland", "TEMPDIR=/tmp", "SNAP_UID=1000", "XDG_CACHE_HOME=/home/maciek/snap"..., "SHLVL=1", "LD_LIBRARY_PATH=/var/lib/snapd/l"..., "MOTD_SHOWN=pam", "HOME=/home/maciek/snap/fireflylu"..., "XLOCALEDIR=/snap/fireflyluciferi"..., "MOZ_ENABLE_WAYLAND=1", "SNAP_LIBRARY_PATH=/var/lib/snapd"..., "OLDPWD=/home/maciek", "DESKTOP_SESSION=gnome", "SUDO_HOME=/home/maciek", "GI_TYPELIB_PATH=/snap/fireflyluc"..., "SNAP_USER_DATA=/home/maciek/snap"..., "LIBGWEATHER_LOCATIONS_PATH=/snap"..., "GTK_PATH=/snap/fireflyluciferin/"..., "GTK_IM_MODULE_FILE=/home/maciek/"..., "HG=/usr/bin/hg", "PAGER=less", "LC_MONETARY=pl_PL.UTF-8", "SYSTEMD_EXEC_PID=2624", "DBUS_SESSION_BUS_ADDRESS=unix:pa"..., "SNAP_REVISION=4", "COLORTERM=truecolor", "GNOME_KEYRING_CONTROL=/run/user/"..., "DEBUGINFOD_URLS=https://debuginf"..., "SPA_PLUGIN_DIR=/snap/fireflyluci"..., "GST_PLUGIN_SCANNER=/snap/firefly"..., "WAYLAND_DISPLAY=wayland-0", "TMPDIR=/run/user/1000/snap.firef"..., "PIPEWIRE_CONFIG_DIR=/snap/firefl"..., "SUDO_UID=1000", "LOGNAME=root", "XKB_CONFIG_ROOT=/snap/fireflyluc"..., "SNAP_CONTEXT=_2jX0ra54iDbofJm6Fr"..., "PULSE_SERVER=unix:/run/user/1000"..., "MEMORY_PRESSURE_WATCH=/sys/fs/cg"..., "XDG_SESSION_CLASS=user", "SNAP_VERSION=2.17.18", "USERNAME=maciek", "TERM=gnome-256color", "SNAP_INSTANCE_NAME=fireflylucife"..., "PATH=/snap/fireflyluciferin/4/us"..., "SESSION_MANAGER=local/galeon:@/t"..., "GDM_LANG=en_US.UTF-8", "NOTIFY_IGNORE_PORTAL=1", "XDG_MENU_PREFIX=gnome-", "LC_ADDRESS=pl_PL.UTF-8", "GNOME_TERMINAL_SCREEN=/org/gnome"..., "GNOME_SETUP_DISPLAY=:1", "SNAP_DATA=/var/snap/fireflylucif"..., "XDG_RUNTIME_DIR=/run/user/1000/s"..., "GST_PLUGIN_SYSTEM_PATH=/snap/fir"..., "GDK_BACKEND=x11", "__EGL_EXTERNAL_PLATFORM_CONFIG_D"..., "DISPLAY=:0", "LOCPATH=/snap/fireflyluciferin/4"..., "_JPACKAGE_LAUNCHER=1430744617329"..., "LD_PRELOAD=:/snap/fireflylucifer"..., "LANG=en_US.UTF-8", "XDG_CURRENT_DESKTOP=GNOME", "SNAP_DESKTOP_RUNTIME=/snap/firef"..., "LC_TELEPHONE=pl_PL.UTF-8", "XDG_DATA_HOME=/home/maciek/snap/"..., "XDG_CONFIG_HOME=/home/maciek/sna"..., "XMODIFIERS=@im=ibus", "XDG_SESSION_DESKTOP=gnome", "XAUTHORITY=/run/user/1000/.mutte"..., "GNOME_TERMINAL_SERVICE=:1.748", "SNAP_USER_COMMON=/home/maciek/sn"..., "SSH_AUTH_SOCK=/run/user/1000/gcr"..., "SUDO_COMMAND=/usr/bin/strace -u "..., "SNAP_ARCH=amd64", "SNAP_COOKIE=_2jX0ra54iDbofJm6Fre"..., "SHELL=/usr/bin/zsh", "DISABLE_WAYLAND=1", "GDK_PIXBUF_MODULEDIR=/snap/firef"..., "GST_PLUGIN_PATH=/snap/fireflyluc"..., "SNAP_REEXEC=", "GDMSESSION=gnome", "SUDO_USER=maciek", "FONTCONFIG_FILE=/snap/fireflyluc"..., "SNAP_NAME=fireflyluciferin", "VK_LAYER_PATH=/snap/fireflylucif"..., "PIPEWIRE_MODULE_DIR=/snap/firefl"..., "XCURSOR_PATH=/snap/fireflylucife"..., "LC_MEASUREMENT=pl_PL.UTF-8", "GDK_PIXBUF_MODULE_FILE=/home/mac"..., "DRIRC_CONFIGDIR=/snap/fireflyluc"..., "SNAP_LAUNCHER_ARCH_TRIPLET=x86_6"..., "QT_IM_MODULE=ibus", "PWD=/home/maciek", "XDG_CONFIG_DIRS=/snap/fireflyluc"..., "SNAP_REAL_HOME=/home/maciek", "LIBTHAI_DICTDIR=/snap/fireflyluc"..., "XDG_DATA_DIRS=/home/maciek/snap/"..., "KWIN_TRIPLE_BUFFER=1", "SNAP_EUID=1000", "ALSA_CONFIG_PATH=/snap/fireflylu"..., "PYTHONPATH=/snap/fireflyluciferi"..., "SNAP=/snap/fireflyluciferin/4", "LC_NUMERIC=pl_PL.UTF-8", "LC_PAPER=pl_PL.UTF-8", "GTK_USE_PORTAL=1", "MEMORY_PRESSURE_WRITE=c29tZSAyMD"..., "VTE_VERSION=7802", "EDITOR=emacsclient -t -a ''", "LIBGL_DRIVERS_PATH=/snap/firefly"...]) = 0
[pid 2089191] +++ exited with 127 +++
[pid 2089188] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=2089191, si_uid=1000, si_status=127, si_utime=0, si_stime=0} ---
/usr/bin/strace: Process 2089194 attached
[pid 2089194] execve("/bin/sh", ["sh", "-c", "--", "rpm --queryformat '%{NAME}' -qf "...], ["SUDO_GID=1000", "PLASMA_USE_QT_SCALING=1", "MAIL=/var/spool/mail/maciek", "__EGL_VENDOR_LIBRARY_DIRS=/snap/"..., "GNOTIFICATION_BACKEND=freedeskto"..., "SNAP_INSTANCE_KEY=", "USER=root", "SNAP_COMMON=/var/snap/fireflyluc"..., "LC_TIME=pl_PL.UTF-8", "MOZ_X11_EGL=1", "FONTCONFIG_PATH=/snap/fireflyluc"..., "LIBVA_DRIVERS_PATH=/snap/firefly"..., "GIO_MODULE_DIR=/home/maciek/snap"..., "XDG_SESSION_TYPE=wayland", "TEMPDIR=/tmp", "SNAP_UID=1000", "XDG_CACHE_HOME=/home/maciek/snap"..., "SHLVL=1", "LD_LIBRARY_PATH=/var/lib/snapd/l"..., "MOTD_SHOWN=pam", "HOME=/home/maciek/snap/fireflylu"..., "XLOCALEDIR=/snap/fireflyluciferi"..., "MOZ_ENABLE_WAYLAND=1", "SNAP_LIBRARY_PATH=/var/lib/snapd"..., "OLDPWD=/home/maciek", "DESKTOP_SESSION=gnome", "SUDO_HOME=/home/maciek", "GI_TYPELIB_PATH=/snap/fireflyluc"..., "SNAP_USER_DATA=/home/maciek/snap"..., "LIBGWEATHER_LOCATIONS_PATH=/snap"..., "GTK_PATH=/snap/fireflyluciferin/"..., "GTK_IM_MODULE_FILE=/home/maciek/"..., "HG=/usr/bin/hg", "PAGER=less", "LC_MONETARY=pl_PL.UTF-8", "SYSTEMD_EXEC_PID=2624", "DBUS_SESSION_BUS_ADDRESS=unix:pa"..., "SNAP_REVISION=4", "COLORTERM=truecolor", "GNOME_KEYRING_CONTROL=/run/user/"..., "DEBUGINFOD_URLS=https://debuginf"..., "SPA_PLUGIN_DIR=/snap/fireflyluci"..., "GST_PLUGIN_SCANNER=/snap/firefly"..., "WAYLAND_DISPLAY=wayland-0", "TMPDIR=/run/user/1000/snap.firef"..., "PIPEWIRE_CONFIG_DIR=/snap/firefl"..., "SUDO_UID=1000", "LOGNAME=root", "XKB_CONFIG_ROOT=/snap/fireflyluc"..., "SNAP_CONTEXT=_2jX0ra54iDbofJm6Fr"..., "PULSE_SERVER=unix:/run/user/1000"..., "MEMORY_PRESSURE_WATCH=/sys/fs/cg"..., "XDG_SESSION_CLASS=user", "SNAP_VERSION=2.17.18", "USERNAME=maciek", "TERM=gnome-256color", "SNAP_INSTANCE_NAME=fireflylucife"..., "PATH=/snap/fireflyluciferin/4/us"..., "SESSION_MANAGER=local/galeon:@/t"..., "GDM_LANG=en_US.UTF-8", "NOTIFY_IGNORE_PORTAL=1", "XDG_MENU_PREFIX=gnome-", "LC_ADDRESS=pl_PL.UTF-8", "GNOME_TERMINAL_SCREEN=/org/gnome"..., "GNOME_SETUP_DISPLAY=:1", "SNAP_DATA=/var/snap/fireflylucif"..., "XDG_RUNTIME_DIR=/run/user/1000/s"..., "GST_PLUGIN_SYSTEM_PATH=/snap/fir"..., "GDK_BACKEND=x11", "__EGL_EXTERNAL_PLATFORM_CONFIG_D"..., "DISPLAY=:0", "LOCPATH=/snap/fireflyluciferin/4"..., "_JPACKAGE_LAUNCHER=1430744617329"..., "LD_PRELOAD=:/snap/fireflylucifer"..., "LANG=en_US.UTF-8", "XDG_CURRENT_DESKTOP=GNOME", "SNAP_DESKTOP_RUNTIME=/snap/firef"..., "LC_TELEPHONE=pl_PL.UTF-8", "XDG_DATA_HOME=/home/maciek/snap/"..., "XDG_CONFIG_HOME=/home/maciek/sna"..., "XMODIFIERS=@im=ibus", "XDG_SESSION_DESKTOP=gnome", "XAUTHORITY=/run/user/1000/.mutte"..., "GNOME_TERMINAL_SERVICE=:1.748", "SNAP_USER_COMMON=/home/maciek/sn"..., "SSH_AUTH_SOCK=/run/user/1000/gcr"..., "SUDO_COMMAND=/usr/bin/strace -u "..., "SNAP_ARCH=amd64", "SNAP_COOKIE=_2jX0ra54iDbofJm6Fre"..., "SHELL=/usr/bin/zsh", "DISABLE_WAYLAND=1", "GDK_PIXBUF_MODULEDIR=/snap/firef"..., "GST_PLUGIN_PATH=/snap/fireflyluc"..., "SNAP_REEXEC=", "GDMSESSION=gnome", "SUDO_USER=maciek", "FONTCONFIG_FILE=/snap/fireflyluc"..., "SNAP_NAME=fireflyluciferin", "VK_LAYER_PATH=/snap/fireflylucif"..., "PIPEWIRE_MODULE_DIR=/snap/firefl"..., "XCURSOR_PATH=/snap/fireflylucife"..., "LC_MEASUREMENT=pl_PL.UTF-8", "GDK_PIXBUF_MODULE_FILE=/home/mac"..., "DRIRC_CONFIGDIR=/snap/fireflyluc"..., "SNAP_LAUNCHER_ARCH_TRIPLET=x86_6"..., "QT_IM_MODULE=ibus", "PWD=/home/maciek", "XDG_CONFIG_DIRS=/snap/fireflyluc"..., "SNAP_REAL_HOME=/home/maciek", "LIBTHAI_DICTDIR=/snap/fireflyluc"..., "XDG_DATA_DIRS=/home/maciek/snap/"..., "KWIN_TRIPLE_BUFFER=1", "SNAP_EUID=1000", "ALSA_CONFIG_PATH=/snap/fireflylu"..., "PYTHONPATH=/snap/fireflyluciferi"..., "SNAP=/snap/fireflyluciferin/4", "LC_NUMERIC=pl_PL.UTF-8", "LC_PAPER=pl_PL.UTF-8", "GTK_USE_PORTAL=1", "MEMORY_PRESSURE_WRITE=c29tZSAyMD"..., "VTE_VERSION=7802", "EDITOR=emacsclient -t -a ''", "LIBGL_DRIVERS_PATH=/snap/firefly"...]) = 0
[pid 2089194] +++ exited with 127 +++
[pid 2089188] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=2089194, si_uid=1000, si_status=127, si_utime=0, si_stime=0} ---
/usr/bin/strace: Process 2089195 attached
[pid 2089195] execve("/bin/sh", ["sh", "-c", "--", "dpkg -S '/snap/fireflyluciferin/"...], ["SUDO_GID=1000", "PLASMA_USE_QT_SCALING=1", "MAIL=/var/spool/mail/maciek", "__EGL_VENDOR_LIBRARY_DIRS=/snap/"..., "GNOTIFICATION_BACKEND=freedeskto"..., "SNAP_INSTANCE_KEY=", "USER=root", "SNAP_COMMON=/var/snap/fireflyluc"..., "LC_TIME=pl_PL.UTF-8", "MOZ_X11_EGL=1", "FONTCONFIG_PATH=/snap/fireflyluc"..., "LIBVA_DRIVERS_PATH=/snap/firefly"..., "GIO_MODULE_DIR=/home/maciek/snap"..., "XDG_SESSION_TYPE=wayland", "TEMPDIR=/tmp", "SNAP_UID=1000", "XDG_CACHE_HOME=/home/maciek/snap"..., "SHLVL=1", "LD_LIBRARY_PATH=/var/lib/snapd/l"..., "MOTD_SHOWN=pam", "HOME=/home/maciek/snap/fireflylu"..., "XLOCALEDIR=/snap/fireflyluciferi"..., "MOZ_ENABLE_WAYLAND=1", "SNAP_LIBRARY_PATH=/var/lib/snapd"..., "OLDPWD=/home/maciek", "DESKTOP_SESSION=gnome", "SUDO_HOME=/home/maciek", "GI_TYPELIB_PATH=/snap/fireflyluc"..., "SNAP_USER_DATA=/home/maciek/snap"..., "LIBGWEATHER_LOCATIONS_PATH=/snap"..., "GTK_PATH=/snap/fireflyluciferin/"..., "GTK_IM_MODULE_FILE=/home/maciek/"..., "HG=/usr/bin/hg", "PAGER=less", "LC_MONETARY=pl_PL.UTF-8", "SYSTEMD_EXEC_PID=2624", "DBUS_SESSION_BUS_ADDRESS=unix:pa"..., "SNAP_REVISION=4", "COLORTERM=truecolor", "GNOME_KEYRING_CONTROL=/run/user/"..., "DEBUGINFOD_URLS=https://debuginf"..., "SPA_PLUGIN_DIR=/snap/fireflyluci"..., "GST_PLUGIN_SCANNER=/snap/firefly"..., "WAYLAND_DISPLAY=wayland-0", "TMPDIR=/run/user/1000/snap.firef"..., "PIPEWIRE_CONFIG_DIR=/snap/firefl"..., "SUDO_UID=1000", "LOGNAME=root", "XKB_CONFIG_ROOT=/snap/fireflyluc"..., "SNAP_CONTEXT=_2jX0ra54iDbofJm6Fr"..., "PULSE_SERVER=unix:/run/user/1000"..., "MEMORY_PRESSURE_WATCH=/sys/fs/cg"..., "XDG_SESSION_CLASS=user", "SNAP_VERSION=2.17.18", "USERNAME=maciek", "TERM=gnome-256color", "SNAP_INSTANCE_NAME=fireflylucife"..., "PATH=/snap/fireflyluciferin/4/us"..., "SESSION_MANAGER=local/galeon:@/t"..., "GDM_LANG=en_US.UTF-8", "NOTIFY_IGNORE_PORTAL=1", "XDG_MENU_PREFIX=gnome-", "LC_ADDRESS=pl_PL.UTF-8", "GNOME_TERMINAL_SCREEN=/org/gnome"..., "GNOME_SETUP_DISPLAY=:1", "SNAP_DATA=/var/snap/fireflylucif"..., "XDG_RUNTIME_DIR=/run/user/1000/s"..., "GST_PLUGIN_SYSTEM_PATH=/snap/fir"..., "GDK_BACKEND=x11", "__EGL_EXTERNAL_PLATFORM_CONFIG_D"..., "DISPLAY=:0", "LOCPATH=/snap/fireflyluciferin/4"..., "_JPACKAGE_LAUNCHER=1430744617329"..., "LD_PRELOAD=:/snap/fireflylucifer"..., "LANG=en_US.UTF-8", "XDG_CURRENT_DESKTOP=GNOME", "SNAP_DESKTOP_RUNTIME=/snap/firef"..., "LC_TELEPHONE=pl_PL.UTF-8", "XDG_DATA_HOME=/home/maciek/snap/"..., "XDG_CONFIG_HOME=/home/maciek/sna"..., "XMODIFIERS=@im=ibus", "XDG_SESSION_DESKTOP=gnome", "XAUTHORITY=/run/user/1000/.mutte"..., "GNOME_TERMINAL_SERVICE=:1.748", "SNAP_USER_COMMON=/home/maciek/sn"..., "SSH_AUTH_SOCK=/run/user/1000/gcr"..., "SUDO_COMMAND=/usr/bin/strace -u "..., "SNAP_ARCH=amd64", "SNAP_COOKIE=_2jX0ra54iDbofJm6Fre"..., "SHELL=/usr/bin/zsh", "DISABLE_WAYLAND=1", "GDK_PIXBUF_MODULEDIR=/snap/firef"..., "GST_PLUGIN_PATH=/snap/fireflyluc"..., "SNAP_REEXEC=", "GDMSESSION=gnome", "SUDO_USER=maciek", "FONTCONFIG_FILE=/snap/fireflyluc"..., "SNAP_NAME=fireflyluciferin", "VK_LAYER_PATH=/snap/fireflylucif"..., "PIPEWIRE_MODULE_DIR=/snap/firefl"..., "XCURSOR_PATH=/snap/fireflylucife"..., "LC_MEASUREMENT=pl_PL.UTF-8", "GDK_PIXBUF_MODULE_FILE=/home/mac"..., "DRIRC_CONFIGDIR=/snap/fireflyluc"..., "SNAP_LAUNCHER_ARCH_TRIPLET=x86_6"..., "QT_IM_MODULE=ibus", "PWD=/home/maciek", "XDG_CONFIG_DIRS=/snap/fireflyluc"..., "SNAP_REAL_HOME=/home/maciek", "LIBTHAI_DICTDIR=/snap/fireflyluc"..., "XDG_DATA_DIRS=/home/maciek/snap/"..., "KWIN_TRIPLE_BUFFER=1", "SNAP_EUID=1000", "ALSA_CONFIG_PATH=/snap/fireflylu"..., "PYTHONPATH=/snap/fireflyluciferi"..., "SNAP=/snap/fireflyluciferin/4", "LC_NUMERIC=pl_PL.UTF-8", "LC_PAPER=pl_PL.UTF-8", "GTK_USE_PORTAL=1", "MEMORY_PRESSURE_WRITE=c29tZSAyMD"..., "VTE_VERSION=7802", "EDITOR=emacsclient -t -a ''", "LIBGL_DRIVERS_PATH=/snap/firefly"...]) = 0
[pid 2089195] +++ exited with 127 +++
[pid 2089188] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=2089195, si_uid=1000, si_status=127, si_utime=0, si_stime=0} ---
[pid 2089188] +++ exited with 0 +++
[pid 2089187] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=2089188, si_uid=1000, si_status=0, si_utime=0, si_stime=0} ---
/usr/bin/strace: Process 2089196 attached
[pid 2089196] --- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=NULL} ---
/usr/bin/strace: Process 2089197 attached
/usr/bin/strace: Process 2089198 attached
/usr/bin/strace: Process 2089199 attached
/usr/bin/strace: Process 2089200 attached
/usr/bin/strace: Process 2089201 attached
/usr/bin/strace: Process 2089202 attached
/usr/bin/strace: Process 2089203 attached
/usr/bin/strace: Process 2089204 attached
/usr/bin/strace: Process 2089205 attached
/usr/bin/strace: Process 2089206 attached
/usr/bin/strace: Process 2089207 attached
/usr/bin/strace: Process 2089208 attached
/usr/bin/strace: Process 2089209 attached
/usr/bin/strace: Process 2089210 attached
/usr/bin/strace: Process 2089211 attached
/usr/bin/strace: Process 2089212 attached
/usr/bin/strace: Process 2089213 attached
[pid 2089202] +++ exited with 0 +++
[pid 2089200] +++ exited with 0 +++
[pid 2089201] +++ exited with 0 +++
[pid 2089198] +++ exited with 0 +++
[pid 2089206] +++ exited with 0 +++
[pid 2089203] +++ exited with 0 +++
[pid 2089196] +++ exited with 0 +++
[pid 2089213] +++ exited with 1 +++
[pid 2089212] +++ exited with 1 +++
[pid 2089211] +++ exited with 1 +++
[pid 2089210] +++ exited with 1 +++
[pid 2089209] +++ exited with 1 +++
[pid 2089208] +++ exited with 1 +++
[pid 2089207] +++ exited with 1 +++
[pid 2089205] +++ exited with 1 +++
[pid 2089204] +++ exited with 1 +++
[pid 2089199] +++ exited with 1 +++
[pid 2089197] +++ exited with 1 +++
[pid 2089187] +++ exited with 1 +++
[pid 2089185] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=2089187, si_uid=1000, si_status=1, si_utime=5 /* 0.05 s */, si_stime=2 /* 0.02 s */} ---
[pid 2089185] +++ exited with 1 +++
[pid 2088905] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=2089185, si_uid=1000, si_status=1, si_utime=0, si_stime=0} ---
[pid 2089178] +++ exited with 0 +++
[pid 2089177] +++ exited with 0 +++
[pid 2089180] +++ exited with 0 +++
[pid 2089179] +++ exited with 0 +++
[Instance #1] 12:42:08.997 [pool-18-thread-1] ERROR o.d.network.tcpUdp.TcpClient - Failed to select a proxy
/usr/bin/strace: Process 2089214 attached
/usr/bin/strace: Process 2089215 attached
/usr/bin/strace: Process 2089216 attached
[pid 2089214] +++ exited with 0 +++
/usr/bin/strace: Process 2089217 attached
[pid 2089215] +++ exited with 0 +++
/usr/bin/strace: Process 2089218 attached
/usr/bin/strace: Process 2089219 attached
[pid 2088890] +++ exited with 0 +++
[pid 2089216] +++ exited with 0 +++
[pid 2089218] +++ exited with 0 +++
  • jspawnhelper runs
  • seems like /snap/fireflyluciferin/4/bin/FireflyLuciferin is started at some point sucessfully?
  • followed by some weird calls to rpm and dpkg (???)
  • a segfault occurs

from forkstat the dpkg/rpm commands are:

child           /snap/fireflyluciferin/4/bin/FireflyLuciferin 
                sh -c -- rpm --queryformat '%{NAME}' -qf '/snap/fireflyluciferin/4/bin/FireflyLuciferin' 2>/dev/null 
 32512   0.004s sh -c -- rpm --queryformat '%{NAME}' -qf '/snap/fireflyluciferin/4/bin/FireflyLuciferin' 2>/dev/null 
parent          /snap/fireflyluciferin/4/bin/FireflyLuciferin 
child           /snap/fireflyluciferin/4/bin/FireflyLuciferin 
                sh -c -- dpkg -S '/snap/fireflyluciferin/4/bin/FireflyLuciferin' 2>/dev/null 
 32512   0.004s sh -c -- dpkg -S '/snap/fireflyluciferin/4/bin/FireflyLuciferin' 2>/dev/null 

the jspawnhelper command is:

/snap/fireflyluciferin/4/lib/runtime/lib/jspawnhelper 23.0.1+11 36:37:39

I tried attaching gdb, but it’s clear that jvm doesn’t like debuggers attached. Right from the start it got sigstop handlers invoked, and then a segfault in libjvm.

very informative but still don’t know how to fix it. I doubt that app developers should fix something that isn’t broken.

I hope that Snap developers will fix this thing.

How exactly do you expect snap developers to fix broken behavior of jpackage/jspawnhelper ?

The jspawnhelper binary does obviously very weird things here, including invoking various random package managers it has no relation with and even explicitly routing stderr to /dev/null so that you can not even debug it properly, there is no way on the snap side to fix this broken behavior (and apparently it is also not wanted by the creators of jspawnhelper that you debug it at all)

There are plenty of java apps in the store (I maintain one myself) that work really well simply using the java -jar ... approach…

I fear you will either have to resort to this or contact the jpackage maintainers to get this fixed, I’m sure the snapd team will happily work with them to get this sorted.

I’ll try to contact them but I would start adding something like the flatpak-spawn in snap. If flatpak added that command, there is a reason for it :slight_smile:

The flatpak-spawn method does a lot more than just spawn new apps, it completely bypasses the sandbox for anything allowed to use it; the sandbox at that point becomes optional rather than enforced because there’s an entire framework designed for letting you run arbitrary commands outside of any protection. I think snap does have equivilents for just the app opening portion, but even with the limited scope, it’s only selectively granted and usually unnecessary.

I posted a fair bit further up how to achieve what’s functionally the same as snap run $snap, add a custom mime handler for your app via the .desktop file and use xdg-open within your Java app to run it. The code that handles this runs outside your sandbox and the effect is basically the same as the user having clicked a fresh window from the start menu.

At this point going down trying to get the basics to work (because they should), I’d check the status of the environment variables before the program runs and a second time just before it crashes trying to spawn a new process. It’d explain why running it via bash twice works (because env will be the same for both since changes inherit downwards but not upwards in the process tree) but this isn’t happening when you do it in your app, meaning if the environment does change, the new instance would inherit it, and it’s possible that JPackage sets up a modified environment that isn’t playing nice.

thanks for the suggestion james. I added this to my .desktop file

MimeType=x-scheme-handler/fireflyluciferin

but then when I try to run the xdg-open command I get those errors:

sblantipodi@DeskStarLinux:~$ xdg-open fireflyluciferin
gio: file:///home/sblantipodi/fireflyluciferin: Error when getting information for file “/home/sblantipodi/fireflyluciferin”: No such file or directory

sblantipodi@DeskStarLinux:~$ xdg-open fireflyluciferin://example
gio: fireflyluciferin://example: The specified location is not supported

I don’t know how to make it work… am I doing something wrong?