← Back to team overview

ubuntu-phone team mailing list archive

Re: [ubuntu-phone] Offline routing application - Publishing problems

 

Hi Frans,

I had read the thread. Thats why I put the map in a subfolder inside its local folder
$HOME/.local/share/osmscout.fransschreuder/Maps/stuttgart/*.dat
too but that didnt work either.

I had problems to add media files to my Aquaris by adding the to my sd card using MTP so maybe thats
the case here too.

Thanks for your quick response and this great app!

Simeon

Am 2015-06-19 um 22:03 schrieb Frans Schreuder:
> Hello Simeon,
>
> If you'd read the whole thread, you wouldn't have posted this issue.
> The problem is that the current version of Ubuntu doesn't allow read access to the SD card, unless
> you specify a rule in the apparmor file. This rule is not allowed by the Ubuntu store, unless it's
> a special Ubuntu Application. Appearantly OSMScout is not special enough.
> Hopefully this will be fixed in a coming release of Ubuntu.
>
> For now I published a version of OSMScout without the special rules, so it only allows read /
> write access to maps located in $HOME/.local/share/osmscout.fransschreuder/Maps
>
> You should put your custom maps there for now, until this limitation of Ubuntu is fixed.
>
> Frans
>
> On 06/19/2015 09:42 PM, Simeon wrote:
>> Hi Frans and others,
>>
>> I noticed today that the app got released, very nice. Thanks a ton for it.
>> I tried adding my own map files to the sd card but the app didnt pick them up. The github issue
>> is https://github.com/fransschreuder/OSMScout-ubuntu/issues/4
>>
>> I will try routing tomorrow.
>>
>> Simeon
>>
>> Am 2015-06-02 um 21:18 schrieb Frans Schreuder:
>>> Dear Ubuntu-phone mailing list,
>>>
>>> I have spent a few weeks developing an offline routing / navigation
>>> application (LGPL) based on openstreetmaps / libosmscout.
>>> I want to publish the app in the Ubuntu App Store, but I am facing a
>>> problem: I need read access on a location on the SD card. I will explain
>>> why.
>>>
>>> 1.) The maps take quite some space on the device (Netherlands is 1.3GB,
>>> Germany is 4+ GB). At least on the BQ Aquaris this space is not
>>> available in the home directory, at least not if you also want to remain
>>> with some space available.
>>>
>>> 2.) The maps have to be converted to a binary format with a tool on the
>>> PC. Until I got some server space and time to host some readily
>>> converted maps, the user will have to transfer maps manually to the
>>> phone. If this would be the app data space, that location is not by
>>> default readable if you browse the phone on the PC.
>>>
>>> 3.) Converting the maps on the phone is not really an option, as the
>>> process uses several GB as temp space, and on an i7 pc it can take over
>>> 1 hour for a map of a small country.
>>>
>>> For now there are no good apparmor rules that matches the need of this
>>> application, Picture read could be possible, however it needs the maps
>>> to be placed in <SD_CARD>/Pictures/osmscout. That is an ugly solution,
>>> but it works.
>>> Another solution is to set the app as unconfined, and use the location
>>> <SD_CARD>/Maps/osmscout. However this is not the solution to allow for
>>> any app, I think this app really adds value to the Ubuntu phone.
>>> Would it be possible to create an app-specific rule that allows (Read,
>>> and maybe later Write) access to <SD_CARD>/Maps/? Or otherwise to allow
>>> this app to be published as unconfined?
>>>
>>> The source code for the app can be found here:
>>> https://github.com/fransschreuder/libosmscout
>>>
>>> The tool to convert maps can be obtained on a desktop:
>>> sudo apt-add-repository ppa:fransschreuder1/osmscout-import
>>> sudo apt-get update
>>> sudo apt-get install osmscoutimportgui0
>>>
>>> Thanks for your comments,
>>>
>>> Regards,
>>>
>>> Frans Schreuder
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>
>>
>>
>
>
>


References