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
  Mobian MMS/SMS text problem bcnaz 16 19,547 6 hours ago
Last Post: georgegohl888
  bookworm vs trixie discussion for mobian in pinephone regular. zetabeta 65 29,053 07-12-2025, 07:46 AM
Last Post: anonymous
  cryptocurrency on mobian/pinephone biketool 33 53,775 06-30-2025, 02:57 PM
Last Post: biketool
  XLibre for Mobian Hiraghm 1 1,223 06-30-2025, 01:38 AM
Last Post: Haroldkent
  Axolotl on PinePhone / Mobian arno_nuehm 223 257,634 06-25-2025, 01:19 PM
Last Post: anonymous
  VoIP account on mobian dialer j_s 0 1,043 06-15-2025, 04:19 PM
Last Post: j_s
  Mobian Pinephone Notification LED biketool 2 1,383 06-07-2025, 03:19 PM
Last Post: KC9UDX
  Vivaldi Web browser nearly native for Mobian biketool 3 1,771 05-06-2025, 02:19 AM
Last Post: biketool
  mobian calamares fail merom 2 1,817 04-29-2025, 02:10 PM
Last Post: mdk
  Pinephone seems tobe using 4G data instead of Wifi data grump_fiddle_reinstall 7 3,826 02-20-2025, 02:47 PM
Last Post: puffchumpy

Forum Jump:


Users browsing this thread: 1 Guest(s)