Comment 10 for bug 62400

Revision history for this message
Ralf Nieuwenhuijsen (ralf-nieuwenhuijsen) wrote : Re: Podcasts directory should be created when required

Doesn't gnome have a policy against wizards? i.e. it should just work?

I don't use audio-podcast and I suspect a large group of rhythmbox users doesn't use it either. So they have no need for the Podcast directory. The thing is, if we create xdg-user dirs for all possible directories of all applications, the default home folder is filled with tons of folders. If we just stick to a few, like the current situation, some folders are not translated, others are, other programs need to ask the user wheter or to create it, etc.

Perhaps for the long term, we should file a bug upstream agains xdg-user-dirs, do support on-the-fly creation of directories. That is:

  xdg-user-dir PODCASTS
     -- only returns directories that are defined with and that actually exist

  xdg-request-dir PODCASTS
     -- is it already defined?
     -- Yes: create if it does not exist, return path
     -- No: Ask the user, create the directory, return path

  xdg-gtk-request-dir PODCASTS
     -- same thing as xdg-request-dir but use GTK to ask the user

  xdg-qt-request-dir PODCASTS
    -- same thing as xdg-request-dir but use QT to ask the user

Then it would be possible to use xdg-user-dirs to support _all_ user directories of all applications.
Including directories for which no default is set in the locale.

Some graphical tool to manage al that would be nice too.
Perhaps that would merge nicely together with the "default application" capplet?

Last note: shouldn't xdg somehow try to notice the user renaming those folders and updating its defintions?
Is this even possible?