View Issue Details

IDProjectCategoryView StatusLast Update
0002366ardourotherpublic2008-08-08 21:56
Reporterjoshsmith Assigned To 
PrioritynormalSeveritytweakReproducibilityN/A
Status newResolutionopen 
Product VersionSVN/2.0-ongoing 
Summary0002366: Implement XDG Base Directory Specification
Descriptionhttp://standards.freedesktop.org/basedir-spec/basedir-spec-0.6.html

This standard should be implemented for this application, especially the $XDG_CONFIG_HOME spec. The config folder should be in the shell variable $XDG_CONFIG_HOME/ardour2 or ~/.config/ardour2 by default
Additional Informationso (i think), change the following in the function get_user_ardour_path in globals.cc:

    char* envvar;
    
    if ((envvar = getenv ("HOME")) == 0 || strlen (envvar) == 0) {
        return "/";
    }

    path = envvar;
    path += "/.ardour2/";

------- to --------

char* envvar;
char* envvarxdg;

    if ((envvar = getenv ("HOME")) == 0 || strlen (envvar) == 0) {
        return "/";
    }
    
    if ((envvarxdg = getenv ("XDG_CONFIG_HOME")) == 0 || strlen (envvarxdg) == 0)
    {
    path = envvar;
    path += "/.config/ardour2/";
    }
    else
    {
    path = envvarxdg;
    path += "/ardour2/";
    }
TagsNo tags attached.

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2008-08-08 21:56 joshsmith New Issue