]> git.pld-linux.org Git - packages/aumix-gtk.git/blob - aumix-home_etc.patch
75bf87a4ffc10e40aebe6d63cc74de53aac76475
[packages/aumix-gtk.git] / aumix-home_etc.patch
1 diff -Nur aumix-1.27.4-orig/doc/aumix.1 aumix-1.27.4/doc/aumix.1
2 --- aumix-1.27.4-orig/doc/aumix.1       Wed Nov 24 13:51:36 1999
3 +++ aumix-1.27.4/doc/aumix.1    Sat Nov 27 18:59:03 1999
4 @@ -115,11 +115,11 @@
5  .Nm
6  go into interactive mode after doing things non-interactively.
7  .It Fl L
8 -load settings from $HOME/.aumixrc, or /etc/aumixrc if the former is inaccessible
9 +load settings from $HOME/etc/aumixrc, $HOME/.aumixrc, or /etc/aumixrc if the former are inaccessible
10  .It Fl q
11  query all devices and print their settings
12  .It Fl S
13 -save settings to $HOME/.aumixrc
14 +save settings to $HOME/etc/aumixrc
15  .El
16  
17  .Sh EXAMPLE
18 @@ -173,7 +173,7 @@
19  .It Em K No or Em k
20  show a description of the functions of keys
21  .It Em L No or Em l
22 -load settings from $HOME/.aumixrc, falling back to /etc/aumixrc
23 +load settings from $HOME/.aumixrc or $HOME/etc/aumixrc, falling back to /etc/aumixrc
24  .It Em M No or Em m
25  mute or unmute
26  .It Em O No or Em o
27 @@ -254,7 +254,7 @@
28  .Ev HOME
29  variable is used.
30  .Sh FILES
31 -Saved settings for the mixer are kept in the /etc/aumixrc and $HOME/.aumixrc files, but can be kept anywhere if specified explicitly.  Color schemes are normally kept in the directory given by DATADIRNAME at compilation time, but are preferentially loaded from the current directory and can be kept anywhere so long as the path to them is specified.  The format of these files is:
32 +Saved settings for the mixer are kept in the /etc/aumixrc and $HOME/etc/aumixrc files ($HOME/.aumixrc is now obsolete, but still works), but can be kept anywhere if specified explicitly.  Color schemes are normally kept in the directory given by DATADIRNAME at compilation time, but are preferentially loaded from the current directory and can be kept anywhere so long as the path to them is specified.  The format of these files is:
33  
34         item foreground background
35   
36 diff -Nur aumix-1.27.4-orig/po/aumix.pot aumix-1.27.4/po/aumix.pot
37 --- aumix-1.27.4-orig/po/aumix.pot      Wed Nov 24 13:52:05 1999
38 +++ aumix-1.27.4/po/aumix.pot   Sat Nov 27 19:07:58 1999
39 @@ -75,7 +75,7 @@
40  "other options:\n"
41  "  d:  adjust a device besides /dev/mixer\n"
42  "  f:  specify file for saving and loading settings (defaults to\n"
43 -"      ~ /.aumixrc or /etc/aumixrc)\n"
44 +"      ~/etc/aumixrc, ~/.aumixrc or /etc/aumixrc)\n"
45  "  C:  specify color scheme\n"
46  "  h:  this helpful message\n"
47  msgstr ""
48 Binary files aumix-1.27.4-orig/po/de.gmo and aumix-1.27.4/po/de.gmo differ
49 diff -Nur aumix-1.27.4-orig/po/de.po aumix-1.27.4/po/de.po
50 --- aumix-1.27.4-orig/po/de.po  Sat Nov 13 11:02:53 1999
51 +++ aumix-1.27.4/po/de.po       Sat Nov 27 19:00:43 1999
52 @@ -81,7 +81,7 @@
53  "other options:\n"
54  "  d:  adjust a device besides /dev/mixer\n"
55  "  f:  specify file for saving and loading settings (defaults to\n"
56 -"      ~ /.aumixrc or /etc/aumixrc)\n"
57 +"      ~/etc/aumixrc, ~/.aumixrc or /etc/aumixrc)\n"
58  "  C:  specify color scheme\n"
59  "  h:  this helpful message\n"
60  msgstr ""
61 @@ -99,7 +99,7 @@
62  "Weitere Optionen:\n"
63  "  d:  Anderes Gerät als /dev/mixer benutzen\n"
64  "  f:  spezifizieren Sie Datei für Einsparung- und Ladeneinstellungen\n"
65 -"      (Rückstellungen zum ~ /.aumixrc or /etc/aumixrc)\n"
66 +"      (Rückstellungen zum ~/etc/aumixrc, ~/.aumixrc or /etc/aumixrc)\n"
67  "  h:  Diese nützlichen Informationen\n"
68  
69  #: src/common.c:567
70 Binary files aumix-1.27.4-orig/po/es.gmo and aumix-1.27.4/po/es.gmo differ
71 diff -Nur aumix-1.27.4-orig/po/es.po aumix-1.27.4/po/es.po
72 --- aumix-1.27.4-orig/po/es.po  Sat Nov 13 11:02:53 1999
73 +++ aumix-1.27.4/po/es.po       Sat Nov 27 19:01:09 1999
74 @@ -81,7 +81,7 @@
75  "other options:\n"
76  "  d:  adjust a device besides /dev/mixer\n"
77  "  f:  specify file for saving and loading settings (defaults to\n"
78 -"      ~ /.aumixrc or /etc/aumixrc)\n"
79 +"      ~/etc/aumixrc, ~/.aumixrc or /etc/aumixrc)\n"
80  "  C:  specify color scheme\n"
81  "  h:  this helpful message\n"
82  msgstr ""
83 @@ -99,7 +99,7 @@
84  "Otras opciones:\n"
85  "  d:  ajustar dispositivos además de /dev/mixer\n"
86  "  f:  indicar el fichero para guardar y cargar las preferencias (por\n"
87 -"      defecto es ~/.aumixrc o /etc/aumixrc\n"
88 +"      defecto es ~/etc/aumixrc, ~/.aumixrc o /etc/aumixrc\n"
89  "  C:  indicar el esquema de color\n"
90  "  h:  este mensaje de ayuda\n"
91  
92 Binary files aumix-1.27.4-orig/po/gl.gmo and aumix-1.27.4/po/gl.gmo differ
93 diff -Nur aumix-1.27.4-orig/po/gl.po aumix-1.27.4/po/gl.po
94 --- aumix-1.27.4-orig/po/gl.po  Sat Nov 13 11:02:53 1999
95 +++ aumix-1.27.4/po/gl.po       Sat Nov 27 19:07:46 1999
96 @@ -89,7 +89,7 @@
97  "other options:\n"
98  "  d:  adjust a device besides /dev/mixer\n"
99  "  f:  specify file for saving and loading settings (defaults to\n"
100 -"      ~ /.aumixrc or /etc/aumixrc)\n"
101 +"      ~/etc/aumixrc, ~/.aumixrc or /etc/aumixrc)\n"
102  "  C:  specify color scheme\n"
103  "  h:  this helpful message\n"
104  msgstr ""
105 @@ -107,7 +107,7 @@
106  "outras opcións:\n"
107  "  d:  axustar outro dispositivo que non sexa /dev/mixer\n"
108  "  f:  especificar ficheiro para gardar e cargar parámetros (por omisión é\n"
109 -"      ~/.aumixrc ou /etc/aumixrc)\n"
110 +"      ~/etc/aumixrc, ~/.aumixrc ou /etc/aumixrc)\n"
111  "  C:  especifica-lo esquema de cor\n"
112  "  h:  amosar esta mensaxe de axuda\n"
113  
114 Binary files aumix-1.27.4-orig/po/pl.gmo and aumix-1.27.4/po/pl.gmo differ
115 diff -Nur aumix-1.27.4-orig/po/pt_BR.po aumix-1.27.4/po/pt_BR.po
116 --- aumix-1.27.4-orig/po/pt_BR.po       Sat Nov 13 11:02:54 1999
117 +++ aumix-1.27.4/po/pt_BR.po    Sat Nov 27 19:01:53 1999
118 @@ -84,7 +84,7 @@
119  "other options:\n"
120  "  d:  adjust a device besides /dev/mixer\n"
121  "  f:  specify file for saving and loading settings (defaults to\n"
122 -"      ~ /.aumixrc or /etc/aumixrc)\n"
123 +"      ~/etc/aumixrc, ~/.aumixrc or /etc/aumixrc)\n"
124  "  C:  specify color scheme\n"
125  "  h:  this helpful message\n"
126  msgstr ""
127 @@ -102,7 +102,7 @@
128  "outras opções:\n"
129  "  d:  usar outro dispositivo que não o /dev/mixer\n"
130  "  f:  SPECIFY FILE FOR SAVING AND LOADING SETTINGS (DEFAULTS TO\n"
131 -"      ~ /.aumixrc or /etc/aumixrc)\n"
132 +"      ~/etc/aumixrc, ~/.aumixrc or /etc/aumixrc)\n"
133  "  C:  SPECIFY COLOR SCHEME\n"
134  "  h:  esta mensagem de ajuda\n"
135  
136 Binary files aumix-1.27.4-orig/po/ru.gmo and aumix-1.27.4/po/ru.gmo differ
137 diff -Nur aumix-1.27.4-orig/po/uk.po aumix-1.27.4/po/uk.po
138 --- aumix-1.27.4-orig/po/uk.po  Sat Nov 20 07:59:46 1999
139 +++ aumix-1.27.4/po/uk.po       Sat Nov 27 19:05:46 1999
140 @@ -82,7 +82,7 @@
141  "other options:\n"
142  "  d:  adjust a device besides /dev/mixer\n"
143  "  f:  specify file for saving and loading settings (defaults to\n"
144 -"      ~ /.aumixrc or /etc/aumixrc)\n"
145 +"      ~/etc/aumixrc, ~/.aumixrc or /etc/aumixrc)\n"
146  "  C:  specify color scheme\n"
147  "  h:  this helpful message\n"
148  msgstr ""
149 @@ -101,7 +101,7 @@
150  "¶ÎÛ¦ ÏÐæ§:\n"
151  "  d:  ÒÅÇÕÌÀ×ÁÔÉ ÐÒÉÓÔÒϧ ÏËҦ͠/dev/mixer\n"
152  "  f:  ×ËÁÚÁÎÎÑ ¦ÍÅΦ ÆÁÊÌÕ ÄÌÑ ÚÂÅÒ¦ÇÁÎÎÑ Ò¦×Φנ(ÚÁ ÚÁÍÏ×ÞÁÎÎÑÍ\n"
153 -"      ~ /.aumixrc ÞÉ /etc/aumixrc)\n"
154 +"      ~/etc/aumixrc, ~/.aumixrc ÞÉ /etc/aumixrc)\n"
155  "  C:  SPECIFY COLOR SCHEME\n"
156  "  h:  ÃÑ ÄÏÐÏÍÏÇÁ\n"
157  
158 diff -Nur aumix-1.27.4-orig/src/common.c aumix-1.27.4/src/common.c
159 --- aumix-1.27.4-orig/src/common.c      Wed Nov 24 13:51:36 1999
160 +++ aumix-1.27.4/src/common.c   Sat Nov 27 18:55:57 1999
161 @@ -430,7 +430,8 @@
162  {
163  /* Open the settings file for reading or writing.
164  
165 -   Try first ${HOME}/.AUMIXRC, then AUMIXRC_PATH/AUMIXRC;
166 +   Try first ${HOME}/.AUMIXRC, ${HOME}/etc/AUMIXRC,
167 +   then AUMIXRC_PATH/AUMIXRC;
168     become an error generator if neither can be opened.
169  
170     Input:
171 @@ -447,8 +448,12 @@
172         char            filename[FILENAME_MAX];
173         if (save_filename == NULL) {
174                 home = getenv("HOME");
175 -               sprintf(filename, "%s/.%s", home, AUMIXRC);
176 -               setfile = fopen(filename, mode);
177 +               sprintf(filename, "%s/etc/%s", home, AUMIXRC);
178 +                setfile = fopen(filename, mode);
179 +                if (setfile == NULL) {
180 +                        sprintf(filename, "%s/.%s", home, AUMIXRC);
181 +                        setfile = fopen(filename, mode);
182 +                }
183                 if (setfile == NULL) {
184                         sprintf(filename, "%s/%s", AUMIXRC_PATH, AUMIXRC);
185                         setfile = fopen(filename, mode);
186 @@ -549,7 +554,7 @@
187  other options:\n\
188    d:  adjust a device besides /dev/mixer\n\
189    f:  specify file for saving and loading settings (defaults to\n\
190 -      ~ /.aumixrc or /etc/aumixrc)\n\
191 +      ~/etc/aumixrc, ~/.aumixrc or /etc/aumixrc)\n\
192    C:  specify color scheme\n\
193    h:  this helpful message\n"));
194  #ifdef HAVE_LIBNCURSES
195 diff -urN aumix-2.old/po/pl.po aumix-2/po/pl.po
196 --- aumix-2.old/po/pl.po        Mon Dec 20 02:13:11 1999
197 +++ aumix-2/po/pl.po    Mon Jan 17 02:22:19 2000
198 @@ -181,7 +181,7 @@
199  "other options:\n"
200  "  d:  adjust a device besides /dev/mixer\n"
201  "  f:  specify file for saving and loading settings (defaults to\n"
202 -"      ~/.aumixrc or /etc/aumixrc)\n"
203 +"      ~/etc/aumixrc, ~/.aumixrc or /etc/aumixrc)\n"
204  "  C:  specify color scheme\n"
205  "  h:  this helpful message\n"
206  msgstr ""
207 @@ -199,7 +199,7 @@
208  "inne opcje:\n"
209  "  d:  dostosowuje urz±dzenie inne ni¿ /dev/mixer\n"
210  "  f:  okre¶la plik do zapisywania i ³adowania ustawieñ (domy¶lnie jest to\n"
211 -"      ~/.aumixrc lub /etc/aumixrc)\n"
212 +"      ~/etc/aumixrc, ~/.aumixrc lub /etc/aumixrc)\n"
213  "  C:  okre¶la plik zawieraj±cy schemat u¿ycia kolorów\n"
214  "  h:  ta pomocna informacja\n"
215  
216 diff -urN aumix-2.old/po/ru.po aumix-2/po/ru.po
217 --- aumix-2.old/po/ru.po        Mon Dec 20 02:13:11 1999
218 +++ aumix-2/po/ru.po    Mon Jan 17 02:23:12 2000
219 @@ -188,7 +188,7 @@
220  "other options:\n"
221  "  d:  adjust a device besides /dev/mixer\n"
222  "  f:  specify file for saving and loading settings (defaults to\n"
223 -"      ~ /.aumixrc or /etc/aumixrc)\n"
224 +"      ~/etc/aumixrc, ~ /.aumixrc or /etc/aumixrc)\n"
225  "  C:  specify color scheme\n"
226  "  h:  this helpful message\n"
227  msgstr ""
228 @@ -207,7 +207,7 @@
229  "äÒÕÇÉÅ ÏÐÃÉÉ:\n"
230  "  d:  ÒÅÇÕÌÉÒÏ×ÁÔØ ÕÓÔÒÏÊÓÔ×Á ËÒÏÍÅ /dev/mixer\n"
231  "  f:  ÕËÁÚÁÎÉÅ ÉÍÅÎÉ ÆÁÊÌÁ ÄÌÑ ÈÒÁÎÅÎÉÑ ÕÓÔÁÎÏ×ÏË (ÐÏ ÕÍÏÌÞÁÎÉÀ\n"
232 -"      ~ /.aumixrc ÉÌÉ /etc/aumixrc)\n"
233 +"      ~/etc/aumixrc, ~ /.aumixrc ÉÌÉ /etc/aumixrc)\n"
234  "  C:  ×ÙÂÏÒ Ã×ÅÔÏ×ÏÊ ÓÈÅÍÙ\n"
235  "  h:  ÜÔÁ ÐÏÍÏÝØ\n"
236  
This page took 0.083883 seconds and 2 git commands to generate.