(05-06-2022, 05:07 AM)wibble Wrote: The file isn't called .desktop - I'm referring generally to the launcher files that follow that standard format. It's probably something like /usr/share/applications/icecat.desktop but it depends on the package. If you list the files provided by the package and search for desktop you should find it. Something like:
dpkg-query -L icecat |grep desktop
Thank you again - we’re so nearly there aha.
/usr/share/applications/icecat.desktop is indeed the correct location, as confirmed by your dpkg-query command.
I have edited and saved the icecat.desktop file in vi wherever I found an “Exec=“ line - there were three:
Exec=icecat %u (beneath the “[Desktop Entry]” section)
Exec=icecat —new-window %u (beneath the “[Desktop Action new-window]” section)
Exec=icecat —private-window %u (beneath the “[Desktop Action new-private-window]” section)
The LD_PRELOAD argument I’ve been using to launch IceCat from the command line is:
LD_PRELOAD=/opt/glibc-2.35/lib/libm.so.6 /usr/lib64/icecat/icecat
So I’ve been trying various combinations of that in my edits of the Exec lines of the .desktop file, all without success so far. First, I started by putting that whole command immediately after the “=“ of each Exec line but that made the IceCat icon disappear from my app drawer so I reverted that change and put the whole LD_PRELOAD command just before the “%u” of each Exec line instead. The IceCat icon returned to the app drawer but when tapping on it the browser would still fail to load.
I tried adding “—“ tagged to the start of the LD_PRELOAD command but that didn’t work, so just in case, I tried removing the destination part of the command that goes “/usr/lib64/icecat/icecat” from the Exec lines but that didn’t work. I then tried removing the “—“ tags that I’d used before, in case that was misguided but still no dice.
I removed the LD_PRELOAD command from the second and third Exec lines, returning them to their original state, and left only the first Exec line modified in case modifying all three had been overkill but that didn’t help either.
Finally, I’ve tried prepending the whole LD_PRELOAD command at the start of the “Exec=“ line but before “Exec”, as well as on its own separate line just before the “Exec=“ line (along with all the variations already described above) - still no luck.
I’ve only ever written a script (copied character for character from instructions on a GitHub repo) and made it executable once before but that was a while ago and whilst I don’t remember what it was for I do remember that I felt pretty inadequate whilst trying it so if we can get this .desktop file edit to work that would definitely be quicker.
However, if we can’t then I’ll go and do some reading up on creating scripts and, if it’s ok with you, put my proposal/results here to see what you think?