Tiny Core Linux

Tiny Core Extensions => TCE Q&A Forum => Topic started by: cURIOUSgEORGE on October 29, 2011, 11:35:25 PM

Title: Firefox doesn't remember settings when using.....
Post by: cURIOUSgEORGE on October 29, 2011, 11:35:25 PM
Firefox doesn't remember my settings/preferences after I reboot the computer if I use sudo LD_PRELOAD=/usr/local/lib/libv4l/v4l2convert.so firefox &

Why is that??????????

I tested it a 100 times. So I'm sure it's due to running LD_PRELOAD........

If I don't run LD_PRELOAD after once again setting up all my firefox configurations than everything does get saved.
Example: Home page, how many spacers, the location of the icons.

I searched google high and low with no results! It's killing me! <Many people have complained before about firefox not saving settings but not due to LD_PRELOAD.
My problem is LD_PRELOAD , so how can I get tinycore to save my firefox settings and still use LD_PRELOAD?????

I tried deleting prefs.js and sessionstore.js BUT once I run sudo LD_PRELOAD=/usr/local/lib/libv4l/v4l2convert.so firefox & ,
ALL MY SETTINGS GET LOST FOR FIREFOX WHEN I REBOOT !!!
Title: Re: Firefox doesn't remember settings when using.....
Post by: grandma on October 30, 2011, 12:01:49 AM
What I did with Firefox - not sure if this will help you - but it does work for me.

a) When running, Firefox settings are stored in

/home/tc/.mozilla/firefox/somefolder.default/prefs.js

the "somefolder" name is a random set of characters like 123ab3423.default (always ends with default)

b) so you type

cd ~
cd .mozilla
cd firefox
and you can see the folder name, then type
cd 123abc.default (whatever it is)
and you will see (should see) prefs.js

c) copy that somewhere to a hard drive, flash drive etc. - permanent media

d) next time you boot firefox will create the folder again (it resides in ram with Tiny Core, though there are ways with the Firefox profiles.ini to change where it sits)

e) go find the folder (new abc123.default name)

f) Firefox cannot be running when you do this: copy your saved prefs.js to the folder, such as

cp /mnt/sda1/mysavedfirefoxfolder/prefs.js /home/tc/.mozilla/firefox/123abc.default/prefs.js

g) finally - start firefox and see if the prefs.js stuck.

I wrote a script that does all this when my system boots.

PLAN B:

Using the mydata.tgz method, I believe you can do a backup before shutting down - not sure if it will save your Firefox, skype and other settings  (I think it might) - another admin would know for sure...
Title: Re: Firefox doesn't remember settings when using.....
Post by: Rich on October 30, 2011, 01:07:00 AM
Hi cURIOUSgEORGE
Try this.
Create a file called  Firefox  containing the following:
Code: [Select]
#!/bin/bash
#
# Ensure that the LD_PRELOAD is clear
unset LD_PRELOAD

# Export LD_PRELOAD
export LD_PRELOAD=/usr/local/lib/libv4l/v4l2convert.so

# Execute firefox
exec usr/local/firefox-official/firefox

exit 0

### End of File ###


Then make it executable using   chmod 755 Firefox
Then enter  ./Firefox   and see if it works any better.
Title: Re: Firefox doesn't remember settings when using.....
Post by: cURIOUSgEORGE on October 30, 2011, 01:43:10 AM
 I GOT IT WORKING NOW!! ;)

All settings are being saved as they should be with no configuration no tweaks ect...

For some reason when using sudo ALL SETTINGS ARE LOST but if I don't use sudo than everything is perfectly fine.
I don't remember why I was even using sudo in the first place but LD_PRELOAD works fine without it.

What a fu**ing nightmare !!! 7 hours!! GOOGLE GOOGLE GOOGLE Do this try that move this move that and than lightbulb "try this", errrrrrr, haha!

It couldn't be any simpler! ;)

BIG Thanks to Grandma & Rich for responding so quickly and trying to help.
Title: Re: Firefox doesn't remember settings when using.....
Post by: Rich on October 30, 2011, 01:48:23 AM
Hi cURIOUSgEORGE
LD_PRELOAD is not a command, it's an enviromental variable, just like  PATH  is.
Title: Re: Firefox doesn't remember settings when using.....
Post by: curaga on October 30, 2011, 03:33:37 AM
Using sudo you ran FF as root, and so the settings were in ram, in root's home dir.
Title: Re: Firefox doesn't remember settings when using.....
Post by: cURIOUSgEORGE on October 30, 2011, 11:42:36 AM
-_- <--------- Uhhh I'm almost speechless Rich,haha and it's hilarious how sure I was that it was due to LD_PRELOAD, Hahahaaa

Thanks for the education though, I'm learning as I go. Thanks for understanding and excusing my ignorance.

Rich and Curaga thanks for the education. Later.