]> git.pld-linux.org Git - packages/audacious.git/blob - audacious-home_etc.patch
- patch already in sources
[packages/audacious.git] / audacious-home_etc.patch
1 --- audacious-1.5.0/src/audacious/Makefile      2008-03-13 22:19:27.000000000 +0000
2 +++ audacious-1.5.0/src/audacious/Makefile      2008-03-15 10:04:11.000000000 +0000
3 @@ -180,6 +180,7 @@
4         ${DBUS_LIBS}            \
5         ${MOWGLI_LIBS}          \
6         ${LIBMCS_LIBS}          \
7 +       -lhome_etc              \
8         ${REGEX_LIBS}
9  
10  LDFLAGS += ${PROG_IMPLIB_LDFLAGS}
11 --- audacious-1.3.0/src/audacious/configdb.h    2007-01-26 18:58:10.000000000 +0100
12 +++ audacious-1.3.0/src/audacious/configdb.h    2007-01-26 19:01:51.000000000 +0100
13 @@ -2,6 +2,7 @@
14  #define CONFIGDB_H
15  
16  #include <glib.h>
17 +#include <home_etc.h>
18  
19  /**
20   * ConfigDb:
21 --- audacious-1.3.0/src/audacious/main.c        2007-01-23 03:21:22.000000000 +0100
22 +++ audacious-1.3.0/src/audacious/main.c        2007-01-26 19:08:25.000000000 +0100
23 @@ -490,13 +490,13 @@
24      char *xdg_cache_home;
25  
26      xdg_config_home = (getenv("XDG_CONFIG_HOME") == NULL
27 -        ? g_build_filename(g_get_home_dir(), ".config", NULL)
28 +        ? g_build_filename(_HEdir, ".config", NULL)
29          : g_strdup(getenv("XDG_CONFIG_HOME")));
30      xdg_data_home = (getenv("XDG_DATA_HOME") == NULL
31 -        ? g_build_filename(g_get_home_dir(), ".local", "share", NULL)
32 +        ? g_build_filename(_HEdir, ".local", "share", NULL)
33          : g_strdup(getenv("XDG_DATA_HOME")));
34      xdg_cache_home = (getenv("XDG_CACHE_HOME") == NULL
35 -        ? g_build_filename(g_get_home_dir(), ".cache", NULL)
36 +        ? g_build_filename(_HEdir, ".cache", NULL)
37          : g_strdup(getenv("XDG_CACHE_HOME")));
38  
39      bmp_paths[BMP_PATH_USER_DIR] =
40 --- audacious-1.3.0/src/audacious/util.c        2007-01-27 14:01:55.000000000 +0100
41 +++ audacious-1.3.0/src/audacious/util.c        2007-02-05 22:48:12.000000000 +0100
42 @@ -29,6 +29,7 @@
43  #include "util.h"
44  
45  #include <glib.h>
46 +#include <home_etc.h>
47  #include <glib/gi18n.h>
48  #include <glade/glade.h>
49  #include <gtk/gtk.h>
50 @@ -1011,7 +1012,7 @@
51    gchar *tmp;
52  
53    if ( (tmp = getenv("XDG_CONFIG_HOME")) == NULL )
54 -    datadir = g_build_filename( g_get_home_dir() , ".config" , "audacious" ,  NULL );
55 +    datadir = g_build_filename( _HEdir , ".config" , "audacious" ,  NULL );
56    else
57      datadir = g_build_filename( tmp , "audacious" , NULL );
58  
59 --- audacious-1.5.0/src/audacious/skin.c        2008-03-13 22:19:27.000000000 +0000
60 +++ audacious-1.5.0/src/audacious/skin.c        2008-03-15 10:07:26.000000000 +0000
61 @@ -1482,10 +1482,10 @@
62  
63      /* the way GTK does things can be very broken. --nenolod */
64  
65 -    gchar *tmp = g_strdup_printf("%s/.themes/aud-%s", g_get_home_dir(),
66 +    gchar *tmp = g_strdup_printf("%s/.themes/aud-%s", _HEdir,
67                                   basename(skin->path));
68  
69 -    gchar *troot = g_strdup_printf("%s/.themes", g_get_home_dir());
70 +    gchar *troot = g_strdup_printf("%s/.themes", _HEdir);
71      g_mkdir_with_parents(troot, 0755);
72      g_free(troot);
73  
This page took 0.063544 seconds and 3 git commands to generate.