On Mon, Oct 08, 2007 at 10:45:15AM -0700, Rusty Lynch wrote:
> 
> 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.

If we're storing content in the user's home directory, we should follow the
XDG directory standard (Documents, Pictures, Music, Videos, etc.).

The xdg-user-dirs package contains the necessary magic.

-- 
 - mdz

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

Reply via email to