วันอังคาร, ธันวาคม 20, 2548

"choose user profile" problem in Firefox Flock and Thunderbird


Method 1:

THUNDERBIRD: Open with firefox an URL contained in an email

1.) Open Nautilus and type this in the address bar: ~/.thunderbird (if that doesn't work, try ~/.mozilla-thunderbird)

2.) Go your profile directory (with a random-generated name, like this Xbcgev.default). To be sure you're in the correct directory check if a file named prefs.js exists.

3.) File > Create Document > Empty Document highlight it and press F2 to rename the document user.js (If it already exists skip this passage).

4.) Open user.js and write this line (if the file already exists append the line at the end): user_pref("network.protocol-handler.app.http", "/usr/bin/firefox");
/usr/bin/firefox is obviously the path to execute firefox

5.) That's all

FIREFOX: open thunderbird when clicking on a "mailto:" link

1.) 1.) Open Nautilus and type this in the address bar: ~/.mozilla/firefox (if that doesn't work, try ~/.mozilla-thunderbird)

2.) Go your profile directory (with a random-generated name, like this Xbcgev.default). To be sure you're in the correct directory check if a file named prefs.js exists.

3.) File > Create Document > Empty Document highlight it and press F2 to rename the document user.js (If it already exists skip this passage).

4.) Open user.js and write this line (if the file already exists append the line at the end): user_pref("network.protocol-handler.app.mailto","/usr/bin/mozilla-thunderbird");
/usr/bin/mozilla-thunderbird is the path to execute thunderbird

5.) That's all


Method 2:
(might be dangerous)

(please back your original TB copy up--some people have had problems with this hack):

1.) Type: about:config into the firefox address bar (press ctrl + T for a new tab)

2.) Right click and choose: New>String

3.) In "new string value" box type: network.protocol-handler.app.mailto click OK

4.) In "enter string value" box enter: /usr/bin/mozilla-thunderbird click OK

5.) Open a terminal and use this command: sudo cp /usr/bin/mozilla-thunderbird /usr/bin/mozilla-thunderbird.bak (this is our backup in case anything goes haywire)

6.) Now use the following command: sudo gedit /usr/bin/mozilla-thunderbird

7.) Press Ctrl + R. In the Search For box, type: Mozilla-Thunderbird. In the Replace with box type: mozilla-thunderbird. Press Alt + M, then Alt + A, then Alt + C, then Ctrl + S, then Alt + F4.

7.) Reset Firefox and try the mailto link (it should work while TB is on or off)


อ่านไปอ่านมาเจอวิธีแก้ปัญหาที่...
ไม่ทราบเหมือนกันว่าทำไมแก้ยาก เพราะผมแก้โดย
sudo chown -R code:code /home/user/.thunderbird


หรือว่าผมจะแก้ผิด...


ไม่มีความคิดเห็น: