Mobile-Friendly Firefox Customizations for Librem 5

This is an interesting approach, but there is an issue. The way that friendlyfox.desktop works is by using find to cd into the directory before running the selected script. I can’t think of any other way for it to work, regardless of the location of the directory. I hadn’t thought about moving it to external storage though; that does complicate things further.

What do you think?

Also, @kms and others, I had forgotten to edit all of the files, so it may be necessary to manually delete and re-clone the repo once more. Sorry about that.

1 Like

Maybe using a log file would even be better instead ignoring the errors. :pencil2:

1 Like

Thank you for the suggestion. I have no idea how to use log files, and will need to learn. I have a lot going on currently, but I’ll put that on my to-do list.

1 Like

I can’t help you either.
My scripting skills are from the past and only for DOS/Windws environments.

2 Likes

I don’t even have scripting skills, unless you count searching the web for how to do basic things in a bash script and building one bit-by-bit. I’m more imaginative than I am proficient in coding or scripting.

2 Likes

In this case, I would not do that, provided that the required directory does get found. As you can see from the recent example, the actual error messages are completely unrelated to the operation and purpose of the script. The error messages are just noise. (In my opinion, find should grow an option to suppress selected error conditions as I often have the experience that I find what I am looking for but I get a bunch of expected and uninteresting permission errors along the way.)

However it would be trivial to replace my suggested /dev/null with an actual file if someone does care to keep the error messages for posterity.

But then if I were actually implementing this then I would have just produced a “unique” fixed directory pathname and claimed that for use by this software i.e. avoided the need for a find at all.

2 Likes

Returned error’s aren’t always helpful or meaningful. I agree, but see my remark as ‘good practise’ while coding. A logfile can be helpful for finding issues you did not think of when writing a script.

3 Likes

@user0 is there a way to apply these customizations to librewolf? I recall seeing something before but can’t find it now.

2 Likes

Yeah, if you have Librewolf installed, running the install.sh script (or using the Friendly-Fox icon) should ask you which browser you want to customize. Unless that’s the only Firefox-based browser you have installed, in which case it should just select it without a prompt. It should also support Mullvad Browser and Tor Browser, but I haven’t tested to verify. I have tested Librewolf flatpak, and it works without issue.

2 Likes

Thanks! that worked. I have LibreWolf - Flatpak, and it worked beautifully!

2 Likes