05-07-2022, 04:28 AM
The wrapper script should be something simple like:
#!/bin/sh
LD_PRELOAD=/opt/glibc-2.35/lib/libm.so.6 /usr/lib64/icecat/icecat "$@"
I'm assuming your command line above is correct - I would have expected it to be under /usr/bin or something. The "$@" is so that when you run the script any arguments get passed to icecat. The script needs to be somewhere in the path like /usr/bin, and you'll probably need to be root or use sudo to be able to put it there.
If you call the script /usr/bin/icecat-wrapper then you can make it executable with:
chmod +x /usr/bin/icecat-wrapper
Now in icecat.desktop edit the Exec lines so that instead of calling icecat they call icecat-wrapper instead of icecat, like:
Exec=icecat-wrapper %u
#!/bin/sh
LD_PRELOAD=/opt/glibc-2.35/lib/libm.so.6 /usr/lib64/icecat/icecat "$@"
I'm assuming your command line above is correct - I would have expected it to be under /usr/bin or something. The "$@" is so that when you run the script any arguments get passed to icecat. The script needs to be somewhere in the path like /usr/bin, and you'll probably need to be root or use sudo to be able to put it there.
If you call the script /usr/bin/icecat-wrapper then you can make it executable with:
chmod +x /usr/bin/icecat-wrapper
Now in icecat.desktop edit the Exec lines so that instead of calling icecat they call icecat-wrapper instead of icecat, like:
Exec=icecat-wrapper %u