On Mon, 2007-10-08 at 10:33 -0700, Spencer, Bob wrote:
<snip>
> >> 2) Adapt mobile-player to use directories in ~ rather than /usr/share
> >> for user information. Right now it wants to write files to
> >> /usr/share, which isn't going to work now that we're not running as
> >> root. Either 
> >> it needs to be able to deal with the concept of merging multiple data
> >> sources (one read-only and another read-write) or we can just move
> >> everything into the user home directory. The downside of the simple
> >> approach is that it makes it harder to provide example data. I'm not
> >> much of a Python person, so I'm not so keen on implementing the more
> >> difficult side of things. If that can get worked out, it would be
> >> great. 
> > 
> > I meant to write a bug on this but never followed through.  Perhaps
> > the right approach for providing some minimal sample media would be
> > to install the files in /usr/share, but then have the player copy
> > over the sample media when it runs for the first time as a given user
> > (i.e. when it constructs the media database in
> > ~/.something-or-another.)     
> 
> Sounds like a simple solution.  So to recap:
>       1) moblin-media package will contain a few samples (recommend: 2
> pics, 1 song (short), 1 video)
>       2) when run, moblin-media will check for ~/media/ folder (any
> reason to hide it with .media?)

Not really.  Just as long as the media database (i.e. both media files
and metadata) is in the user's home directory.

>         2a) if no ~/media folder, then create ~/media/photo,
> ~/media/video, ~/media/music and copy over sample content

Eventually we will need more then just a directory of files, but a
database of additional information (metadata) that we associate with the
files (like play list, ratings, etc.)

This copying task will also initialize the media database.

> 
> Question:  If we were to create a separate moblin-media-sample-content
> package, where would it install its contents?  

I would think that /usr/share/moblin-media/sample-content/ would be a
good location to install the content.

> How would these get into
> ~/media for the installing user given that installation is always done
> as root?  (noob question)

The application (running as the given user) would copy over the content
into it's own media database.  This would only happen the first time the
user ran the media application.

But... didn't you cover this on 2a?  Maybe I didn't get the question?

    --rusty

-- 
Ubuntu-mobile mailing list
[email protected]
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-mobile

Reply via email to