Icecat on Mobian on PinePhone
#13
(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?
  Reply


Messages In This Thread
Icecat on Mobian on PinePhone - by 3460p - 03-18-2022, 08:20 AM
RE: Icecat on Mobian on PinePhone - by wibble - 03-19-2022, 05:44 AM
RE: Icecat on Mobian on PinePhone - by 3460p - 03-19-2022, 12:01 PM
RE: Icecat on Mobian on PinePhone - by wibble - 03-20-2022, 08:13 AM
RE: Icecat on Mobian on PinePhone - by 3460p - 04-21-2022, 08:54 AM
RE: Icecat on Mobian on PinePhone - by 3460p - 04-23-2022, 09:02 AM
RE: Icecat on Mobian on PinePhone - by clover - 04-23-2022, 02:21 PM
RE: Icecat on Mobian on PinePhone - by 3460p - 04-28-2022, 08:00 AM
RE: Icecat on Mobian on PinePhone - by wibble - 04-25-2022, 03:53 AM
RE: Icecat on Mobian on PinePhone - by wibble - 04-29-2022, 02:56 AM
RE: Icecat on Mobian on PinePhone - by 3460p - 05-05-2022, 01:14 PM
RE: Icecat on Mobian on PinePhone - by wibble - 05-06-2022, 05:07 AM
RE: Icecat on Mobian on PinePhone - by 3460p - 05-06-2022, 11:04 AM
RE: Icecat on Mobian on PinePhone - by wibble - 05-07-2022, 04:28 AM
RE: Icecat on Mobian on PinePhone - by 3460p - 05-14-2022, 04:29 AM
RE: Icecat on Mobian on PinePhone - by wibble - 05-15-2022, 05:41 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  atinout binaries for mobian/debian? NeutralGrey 4 1,317 10-31-2024, 04:16 AM
Last Post: astylethargic
  bookworm vs trixie discussion for mobian in pinephone regular. zetabeta 39 8,234 10-15-2024, 01:12 PM
Last Post: anonymous
  Pinephone seems tobe using 4G data instead of Wifi data grump_fiddle_reinstall 1 797 06-25-2024, 10:38 AM
Last Post: mikehenson
  Mobian-Kicksecure? 3460p 0 808 05-26-2024, 02:09 PM
Last Post: 3460p
  Mobian repository status henrythemouse 16 12,036 04-10-2024, 10:02 AM
Last Post: diederik
  cant verify mobian image at website gnugpg penguins_rule 0 871 03-18-2024, 08:54 PM
Last Post: penguins_rule
  unofficial kali linux for pinephone help needed pinesmell 5 5,021 01-08-2024, 02:50 PM
Last Post: ERPlegend
  mobian installed to eMMC - how to install tow-boot grump_fiddle_reinstall 6 3,907 11-22-2023, 11:46 AM
Last Post: aLoop100o
  What actions needed to keep on mobian testing user641 3 2,578 09-05-2023, 06:44 AM
Last Post: Zebulon Walton
  Mobian boot failed with zstd message after upgrade. Mahgue 0 968 09-01-2023, 11:29 AM
Last Post: Mahgue

Forum Jump:


Users browsing this thread: 1 Guest(s)