LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-06-2008, 05:59 PM   #1
shadowsnipes
Senior Member
 
Registered: Sep 2005
Distribution: Slackware
Posts: 1,443

Rep: Reputation: 73
HowTo not accept Firefox 3 EULA when sharing profile in Windows and Linux


Quick tip for those who share FF profiles between Windows and Linux on a shared partition.

I have found that after using a profile in Windows, you are asked to accept the EULA again in Linux. In addition, middle click suddenly loads urls from the clipboard again.

Here is a quick script that fixes those problems. Modify it for your setup. I use it in Slackware to call my crossover profile (named "Crossover3.0" in profiles.ini).

Code:
#!/bin/sh
# ~/bin/firefox

MOUNT=/mnt/MEDIA/CrossoverFirefox
PROFILE=tyltqo2t.CrossoverProf3

LAST_OS=$(grep LastOSABI $MOUNT/$PROFILE/compatibility.ini | cut -d "=" -f2 | cut -d"_" -f1)
if [ "LAST_OS" == "WINNT" ] || ! grep -wq "\"browser.EULA.3.accepted\", true" $MOUNT/$PROFILE/prefs.js
then # We've got a little cleaning up to do
  cat << EOF >> $MOUNT/$PROFILE/prefs.js
user_pref("browser.EULA.3.accepted", true);
user_pref("middlemouse.contentLoadURL", false);
EOF
fi

/usr/lib/firefox/firefox -P "Crossover3.0" $@
I hope this helps some people.
 
Old 12-07-2008, 12:48 PM   #2
lurko
Member
 
Registered: Jun 2006
Location: Ontario, Canada
Distribution: Debian
Posts: 448

Rep: Reputation: 35
Middle clicking to load urls from the clipboard is a feature that just isn't available on Windows. It doesn't have enough clipboards and middle clicking is reserved for scrolling with the mouse pointer.
 
Old 12-07-2008, 01:55 PM   #3
shadowsnipes
Senior Member
 
Registered: Sep 2005
Distribution: Slackware
Posts: 1,443

Original Poster
Rep: Reputation: 73
Quote:
Originally Posted by lurko View Post
Middle clicking to load urls from the clipboard is a feature that just isn't available on Windows. It doesn't have enough clipboards and middle clicking is reserved for scrolling with the mouse pointer.
I know that. That is the exact reason that the setting is changed when you use a Firefox profile in Linux that was last used in Windows. Since Windows does not have a middle click function that makes use of the selection buffer, Firefox simply nixes the setting in prefs.js. When the profile is used in Linux again the Linux default is brought back.
 
Old 12-08-2008, 06:09 PM   #4
lurko
Member
 
Registered: Jun 2006
Location: Ontario, Canada
Distribution: Debian
Posts: 448

Rep: Reputation: 35
OK, only mentioned it because it sounded like that behaviour was unexpected somehow, and I'm not sure why you'd want to bother disabling it - does middle click do pointer-scrolling when you do?

Last edited by lurko; 12-08-2008 at 06:12 PM.
 
Old 12-12-2008, 10:36 PM   #5
shadowsnipes
Senior Member
 
Registered: Sep 2005
Distribution: Slackware
Posts: 1,443

Original Poster
Rep: Reputation: 73
Quote:
Originally Posted by lurko View Post
[..]I'm not sure why you'd want to bother disabling it - does middle click do pointer-scrolling when you do?
I often scroll very fast and sometimes I inadvertently click the middle button. The wheel does not turn as easily as I'd like, so it is easy to accidentally click.

I would prefer if I could do middle click scrolling in Firefox to loading URLs from the clipboard. Do you know how to do that?

Last edited by shadowsnipes; 12-12-2008 at 10:37 PM.
 
Old 12-12-2008, 11:23 PM   #6
lurko
Member
 
Registered: Jun 2006
Location: Ontario, Canada
Distribution: Debian
Posts: 448

Rep: Reputation: 35
Turns out it's right in the main Preferences dialog in Firefox, under the Advanced tab, check "use autoscrolling". It's a bit uglier than under Windows (at least with the version of Iceweasel I'm using), but it's the same functionality. Who knew? Not me...

edit: Another quick scrolling feature is middle clicking on the scroll bar. If you middle click down at the bottom, just above the arrow button, Firefox takes you directly to the bottom of the page you're on. If you click in the middle, you get the middle of your page. I'm sure there's other programs that do this too (like Xman :-P) but probably lots that don't.

Last edited by lurko; 12-13-2008 at 12:12 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: A Linux Bun in HP's Oven; Firefox and the EULA Hounds LXer Syndicated Linux News 0 09-22-2008 02:00 PM
LXer: Mozilla removes EULA from Linux Firefox LXer Syndicated Linux News 2 09-19-2008 09:16 AM
LXer: Mozilla Admits Firefox EULA is flawed LXer Syndicated Linux News 0 09-16-2008 08:20 PM
Sharing Firefox between Windows&Linux Ashrack Linux - Software 6 01-15-2007 03:29 AM
My linux doesn't accept (only) windows telnet ! Third Angel Linux - Networking 3 10-17-2004 07:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration