xdg user directory patches for xfce 4.4.2
Andrea Santilli
yawara at quipo.it
Sun Aug 10 22:30:55 CEST 2008
Thanks for your replies guys, you've given me some cool ideas.
I'm thinking about making the base libraries find out what those
directories are and give the values to the requesting applications,
instead of having to find them out every time.
And yes, I guess I'll need to write some function that can replace
g_get_user_special_dir().
Anyway, about the portability, maybe it would be a better idea to write
a setting configuration interface through which you can enter the
pathnames for those directories. Something like kde already has. It
could also have a 'set everything with the xdg user directory defaults'
option.
Dunno, thats just an idea. What do you think?
Il giorno dom, 10/08/2008 alle 17.21 +0200, Christian Dywan ha scritto:
> Am Sun, 10 Aug 2008 15:40:34 +0200
> schrieb Jannis Pohlmann <jannis at xfce.org>:
>
> > Hey,
> >
> > Am Sun, 10 Aug 2008 15:22:50 +0200
> > schrieb Andrea Santilli <yawara at quipo.it>:
> >
> > > hello all,
> > > I was running xfce 4.4.2 on Fedora 9 when I noticed that it did not
> > > recognize the xdg user directories. I found this quite annoying so I
> > > filed a bug report to bugzilla
> > > (https://bugzilla.redhat.com/show_bug.cgi?id=457740)
> > > The guy there pointed me out that this features is probably going to
> > > be included in version 4.6.x and that there were no planes to
> > > backport it to the 4.4.x branch.
> > > Hence I submitted 3 patches to force xfce recognize such
> > > directories. Please could you developers point me out whether those
> > > patches are correct enough and the eventual details I forgot?
> > > I'm attaching those patches to this email too.
> > > Thank you in advance.
> > > A. Santilli
> >
> > the main problem I see is your use of g_get_user_special_dir() which
> > was introduced with GLib 2.14. Xfce 4.6 is going to be based on GTK+
> > 2.10 and GLib 2.12, thus we cannot use that function unless it is
> > surrounded by an #ifdef GLIB_CHECK_VERSION(2,14,0).
> >
> > - Jannis
>
> Hey Andrea,
>
> That's a cool addition.
>
> I suggest it should be very nice if you could implement fallback code
> for older Glib versions and manually read out ~/user-dirs.dirs
> and /etc/xdg/user-dirs.dirs. Just look at Glib for ideas, but I think
> you can make it much simpler, for instance it doesn't have to work on
> non-unix platforms.
>
> ciao,
> Christian
> _______________________________________________
> Xfce4-dev mailing list
> Xfce4-dev at xfce.org
> http://foo-projects.org/mailman/listinfo/xfce4-dev
> ________________________________________________________________________
> Quipo Free Internet: sicuro e veloce senza costi di attivazione e senza
> canone, 2 e-mail da 50 Mb, 150 Mb di spazio web e molto di pi!
> Registrati gratis: http://www.quipo.it
>
>
________________________________________________________________________
Quipo Free Internet: sicuro e veloce senza costi di attivazione e senza
canone, 2 e-mail da 50 Mb, 150 Mb di spazio web e molto di più!
Registrati gratis: http://www.quipo.it
More information about the Xfce4-dev
mailing list