Closed jwaffe75 closed 1 month ago
The dependencies are correct, but /usr/bin/slade is running the wrong binary due to a difference between Debian and Ubuntu. This will be addressed in the next release, but in the mean time you can edit /usr/bin/slade to explicitly reference /sbin/ldconfig instead of expecting ldconfig to be on the PATH. (The solution you determined also works fine, although you'll probably want to remember to uninstall it after the next Slade release.) See also: https://github.com/sirjuddington/SLADE/issues/1672#issuecomment-2212561967
Oh I see, that's interesting. Thanks for the info.
So it's not that the library wasn't installed, it's that ldconfig wasn't accessible to non-root.
I wonder why installing the package fixed it, though.
Also just to make sure I understand, Debian 12 users should be using slade.legacy right?
ldconfig doesn't require root. It's just only, by default, in the PATH for root. So if you run /sbin/ldconfig
instead of ldconfig
it works.
The difference between slade.legacy and slade binaries is that the former is linked with webkit2gtk 4.0, the latter 4.1. Since Debian 12 provides 4.1 you should be using the non-legacy binary. But the check performed to see if your system has 4.1 installed fails and it tries to run the wrong binary.
The reason your fix works is because you made it irrelevant that the check failed since you can run the legacy binary if you happen to have webkit2gtk 4.0 installed.
Okay thanks, that helps. I uninstalled libwebkit2gtk-4.0-37
For the sake of documenting the fix in the meantime, I went ahead and did this:
I edited /usr/bin/slade from
# Pick Ubuntu <24.04 binary vs Ubuntu >=22.04 binary
if [ -z "$(ldconfig -N -p | awk '$1 == "libwebkit2gtk-4.1.so.0"')" ]; then
SladeBin=slade.legacy
else
SladeBin=slade
fi
# Slade (probably wxWidgets) has issues with Wayland
GDK_BACKEND=x11 exec "/usr/share/slade/$SladeBin" "$@"
to
#!/bin/sh
# Pick Ubuntu <24.04 binary vs Ubuntu >=22.04 binary
# [75] ldconfig is not in PATH for Debian 12, so we need to give its full path.
if [ -z "$(/sbin/ldconfig -N -p | awk '$1 == "libwebkit2gtk-4.1.so.0"')" ]; then
SladeBin=slade.legacy
else
SladeBin=slade
fi
# Slade (probably wxWidgets) has issues with Wayland
GDK_BACKEND=x11 exec "/usr/share/slade/$SladeBin" "$@"
Now everything works
SLADE Version
3.2.5
OS
Linux
Steps to Reproduce and Observed Behavior
apt install slade
If I manually do
It works, so maybe there's an extra dependency that isn't listed in the deb.
This happens on both 3.2.5 and 3.2.6