Implement XDG Base Directory Specification

Bug #316358 reported by Duncan Hawthorne
4
Affects Status Importance Assigned to Milestone
LinuxDC++
Confirmed
Wishlist
Unassigned

Bug Description

http://standards.freedesktop.org/basedir-spec/basedir-spec-0.6.html

Would it be possible to implement this?

The rationale of the specification is having a unified, predictable behavior across all free software applications, rather than having thousands of applications each of which go about things their own way.

Using this spec eases things such as backing up configuration, syncing configuration, deleting broken configuration. It also removes the clutter from the home directory, when it is all logically "config", so should be in a config folder.

By splitting up config, data and cache, it prevents backup procedures wasting time and space backing up pointless files.

Revision history for this message
Steven Sheehy (steven-sheehy) wrote :

It's possible, but a bit hard since the DC++ core actually determines the config path. Thus, we wouldn't be able to use glib's nice g_get_user_*_dir() functions. Our two choices are to modify the core to duplicate the functionality from those glib functions or to create a set config path function so we can set it from the GUI.

Changed in linuxdcpp:
importance: Undecided → Wishlist
status: New → Confirmed
Revision history for this message
Marcin Garski (mgarski) wrote :

I've implemented this 4 months ago in Fedora's linuxdcpp package, zero bug reports. Probably it's not a perfect implementation but feel free to modify it :)

Revision history for this message
Marcin Garski (mgarski) wrote :

I've forget to mention it only implement default download location.

Revision history for this message
qwertitis (qwertitis-deactivatedaccount) wrote :

IMHO, this spec (xdg-base-dirs) is just too convoluted. User directory cleanliness, OK. But I really want to see some good arguments before I make a path lookup function to look for the *statically installed* files. I don't understand the motives behind this spec.

Garski: Thank you for providing your changes. You have implemented some support for xdg-user-dirs, not xdg-base-dir. I've filed a separate report for xdg-user-dirs. Bug 329805. You're patch unfortunately does exactly what Steven previously explained we cannot do. Some related changes are being done in the i18n branch, however, so things are moving.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.