maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Resolved] Ovi maps stopped to work offline (https://talk.maemo.org/showthread.php?t=42497)

debernardis 2010-05-10 05:19

Re: [Resolved] Ovi maps stopped to work offline
 
This is how I did - but I'm sure there are better ways.

1) Learn how to edit files as root (explained elsewhere, most likely in wiki.maemo.org but also in countless threads here) and have an editor (you can install leafpad from repos).

2) open terminal, become root, edit your /usr/share/applications/hildon/nokia-maps.desktop file as follows:
Code:

[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Name=mappe
#X-Text-Domain=nokia-maps-core
Exec=/opt/mybin/mappe.sh
Icon=general_map
X-Window-Icon=general_map
X-HildonDesk-ShowInToolbar=true
#X-Osso-Service=NokiaMaps
X-Osso-Type=application/x-executable
Terminal=false
#X-Maemo-Prestarted=none
#X-Maemo-Prestarted-Priority=1000

3) then create a directory for personal executable files
Code:

mkdir /opt/mybin
cd in that directory
Code:

cd /opt/mybin
and create the mappe.sh file, containing
Code:

#!/bin/sh
cd /home/user/MyDocs
/usr/bin/nokia-maps /usr/share/nokia-maps/html/index.html
exit 0

Should be enough ;)

syd 2010-05-12 08:29

Re: [Resolved] Ovi maps stopped to work offline
 
Unfortunately that did not work on my n900.
When i erase the line "X-Osso-Service=NokiaMaps" from nokia-maps.desktop file, the map application does not run at all from desktop.
If i let it on the maps do not load.

debernardis 2010-05-13 05:39

Re: [Resolved] Ovi maps stopped to work offline
 
Did you also remind changing the Exec line?

syd 2010-05-13 07:45

Re: [Resolved] Ovi maps stopped to work offline
 
I did. I have checked the commands over a hundred times and i am sure that i wrote them correct. Thank you very much for your help, but it still doesn't work. At least i can load the maps from the terminal. If you can think anything else i could try please let me know.

kmare 2010-05-13 08:16

Re: [Resolved] Ovi maps stopped to work offline
 
oh gosh, tnx debernardis!
I tried many things (editing files, copying maps over and over again, stripping binaries) but nothing.. and it never hit me to try to launch maps from the MyDocs folder. Indeed it works fine now (if launched from the terminal of course). I wonder what really caused the breakage in the first place.

Tnx again for the tip :)

ttseppal 2010-05-14 05:50

Re: [Resolved] Ovi maps stopped to work offline
 
Quote:

Originally Posted by syd (Post 650538)
I have exactly the same problem.
I followed your instructions and i managed to load the maps starting nokia-maps from /MyDocs directory. However, as my experience in Linux is limited, i don't understand how to make it work from the menu.
Please be so kind to give more detailed instructions.
thanks

When following the excellent instructions from debernardis, remember also to add execute permissions to your own shell script, for example: chmod a+x /opt/mybin/mappe.sh


All times are GMT. The time now is 20:57.

vBulletin® Version 3.8.8