Active Topics

 



Notices


Reply
Thread Tools
pelago's Avatar
Posts: 2,121 | Thanked: 1,540 times | Joined on Mar 2008 @ Oxford, UK
#31
You should start X Terminal and do "leafpad /home/user/.mozilla/microb/prefs.js" to edit the existing prefs.js directly, rather than what you were trying to do which would have wiped and replaced it. Run from the terminal, leafpad can edit files outside of /home/user/MyDocs, but when you use the GUI Open/Save dialogues you can only save within MyDocs or on an SD card.
 

The Following User Says Thank You to pelago For This Useful Post:
oxpo's Avatar
Posts: 168 | Thanked: 108 times | Joined on Oct 2009 @ Luleå, Sweden
#32
I had problem with this. This is how I solved it, on the N900:

Made a copy of the prefs.js file, and edited the copy with the lines above.
When I used killall browser, after a while it was running again, but after a restart of the phone, it was gone for a while. So I prepared the terminal with the copy command (cp /home/user/prefs.js /home/user/.mozilla/microb/ ) and typed exit in the terminal (to save the latest commans)
Restarted the phone and went to terminal as fast as I could. UP-arrow two times (to get to my prepared copy command).

Hope this can help someone.

/oxpo
 

The Following 2 Users Say Thank You to oxpo For This Useful Post:
antezz's Avatar
Posts: 172 | Thanked: 160 times | Joined on Jan 2010 @ Sweden
#33
Originally Posted by gonediscin View Post
Hi, I can't make this work. This might be because I am no more than a end user. Here is the steps I have taken to attempt to resolve having my default browser link the phone numbers to my phone app.

1.) download Leafpad from maemo.org
2.) open terminal x and killall browsers. It said that no processes killed, but did not have a browser open anyways.
3.) open leafpad
4.) typed:
user_pref("network.protocol-handler.warn-external.sip", false);
user_pref("network.protocol-handler.warn-external.tel", false);
5.) attempted to save to
/home/user/.mozilla/microb/prefs.js
6.) Leafpad says
Field unable to contain /
7.) removed the first / before home but leafpad said the same as it did in step 6

I got stuck at step 6, but still would have gotten stuck at the next step. The step where i would have to open the .js file in terminal x. Please tell me how I would do this. What am I doing wrong? and please put it in a step by step process.

Thanks for any help

KYLe

PS if I use the user interface to save a file it gives me no folder for home
type this in terminal:

leafpad /home/user/.mozilla/microb/prefs.js

Then add the lines to the bottom of the file and save.
 

The Following User Says Thank You to antezz For This Useful Post:
Posts: 30 | Thanked: 9 times | Joined on Jan 2010 @ Florida
#34
Thank you all for your help!

@pelago its a good thing that leafpad doesn't let me save the way I was trying. Didn't realize I was about to write over an important file.

MiK546 gave me these instructions, and everything works great now. These instructions correspond with all of yours, but recieved his first. I no longer keep having to play memory games every time I find a # on the web now!

1. Install leafpad (if you haven't already) (sorry, you have to install it, but it isn't big and can be found from Extras trough application manager)
2.Close all your browser windows
3.Open X Terminal and write
Code:

killall browser (enter)
cd .mozilla/microb (enter)
leafpad prefs.js (enter)

4. Now you should be in a texteditor-window. Scroll to the bottom of the file and then paste the following there:
Code:

user_pref("network.protocol-handler.warn-external.sip", false);
user_pref("network.protocol-handler.warn-external.tel", false);

5. Save your changes and close the leafpad and Terminal -windows
5a. restart your device before opening a browser.
6.Enjoy!

Thank you all!!!

KYLe

Last edited by gonediscin; 2010-08-09 at 22:59. Reason: forgot about the restart
 

The Following 3 Users Say Thank You to gonediscin For This Useful Post:
Posts: 53 | Thanked: 8 times | Joined on Apr 2010
#35
thanks for the detailed instructions!

I too am new to Linux, and need to have things explained to me in such a clear way, or else I fear I'll break something badly.

If the first poster is still around, you might edit the first post to include the above instructions so that other people won't have to read through the whole thread to find out how to do it!

thanks all
 

The Following User Says Thank You to edanto For This Useful Post:
Posts: 67 | Thanked: 29 times | Joined on Jan 2010
#36
Sorry to bring this back but i finally added the two preferences to microb and they are in the preference file and set to false and written correctly but the phone numbers still are not clickable.

I am on pr1.2 and not sure what else to do
 
moudy91's Avatar
Posts: 165 | Thanked: 18 times | Joined on Jun 2010
#37
Originally Posted by lma View Post
URI scheme support according to /usr/share/applications/uri-action-defaults.list:
Code:
[Default Actions]
http=hildon-browser.desktop
https=hildon-browser.desktop
ftp=hildon-browser.desktop
mailto=hildon-modest.desktop
chatto=hildon-rtcom-messaging-ui.desktop
xmpp=hildon-rtcom-messaging-ui.desktop
sms=hildon-rtcom-messaging-ui.desktop
voipto=hildon-rtcom-call-ui.desktop
sip=hildon-rtcom-call-ui.desktop
callto=hildon-rtcom-call-ui.desktop
tel=hildon-rtcom-call-ui.desktop
mms=hildon-mediaplayer.desktop
mmsh=hildon-mediaplayer.desktop
rtsp=hildon-mediaplayer.desktop


dear friend.
i don't know if am putting my comment in the right position but i need some help,
how can i access the calendar To Do with a script, i want to access it from the beecon.
OR if you got ALL the application shortcut of the n900 and i mean it ALL :>
thank you
 
moudy91's Avatar
Posts: 165 | Thanked: 18 times | Joined on Jun 2010
#38
Originally Posted by moudy91 View Post
dear friend.
i don't know if am putting my comment in the right position but i need some help,
how can i access the calendar To Do with a script, i want to access it from the beecon.
OR if you got ALL the application shortcut of the n900 and i mean it ALL :>
thank you
any news guys about the script ?
 
5spdvl's Avatar
Posts: 220 | Thanked: 66 times | Joined on Aug 2010 @ Melbourne, Australia
#39
My problem:

1) open terminal
2) killall browser (no processes killed)
3) sudo gainroot (sometimes changes made in leafpad don't work unless I'm root)
4) leafpad /home/user/.mozilla/microb/prefs.js
5) user_pref("network.protocol-handler.warn-external.sip", false);
user_pref("network.protocol-handler.warn-external.tel", false);
...copied at the bottom of the file.
6) Save
7) Turn off
8) Turn on
9) Check the file again through leafpad as root, changes there
10) Find a phone number in MicroB, not clickable
11) Check file again, changes lost

Why are they not remaining?
 

The Following User Says Thank You to 5spdvl For This Useful Post:
Posts: 2,006 | Thanked: 3,351 times | Joined on Jun 2010 @ N900: Battery low. N950: torx 4 re-used once and fine; SIM port torn apart
#40
Originally Posted by 5spdvl View Post
My problem:

1) open terminal
2) killall browser (no processes killed)
3) sudo gainroot (sometimes changes made in leafpad don't work unless I'm root)
4) leafpad /home/user/.mozilla/microb/prefs.js
5) user_pref("network.protocol-handler.warn-external.sip", false);
user_pref("network.protocol-handler.warn-external.tel", false);
...copied at the bottom of the file.
6) Save
7) Turn off
8) Turn on
9) Check the file again through leafpad as root, changes there
10) Find a phone number in MicroB, not clickable
11) Check file again, changes lost

Why are they not remaining?
There is some more important file somewhere (I think)
I haven't edited prefs.js manually. There is too large potential for misprint.
There is a GUI instead

In MicroB, open page
about:config

Don't be afraid of dragons.

In the filter textbox, type
network.protocol-handler.warn-external.

And set preferences you want to the value you want (false)

Restart MicroB

If phone number in MicroB is not clickable, check in about:config, whether it remembers the preferences.

EDIT: In case a preference you want isn't here, create it (top row in about:config) as Boolean, with value false.
http://kb.mozillazine.org/About:config
https://bugs.maemo.org/show_bug.cgi?id=10404

Last edited by Wikiwide; 2011-01-15 at 10:50.
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 06:06.