Add parameter GNOME_PARAM_APP_DATADIR
2001-12-20 Bradford Hovinen <hovinen@ximian.com> * capplets/screensaver/main.c (main): Add parameter GNOME_PARAM_APP_DATADIR * mouse-properties-capplet.c (main): Add parameter GNOME_PARAM_APP_DATADIR * configure.in (GNOMECC_DESKTOP_DIR): Define (GNOMECC_DATA_DIR): Define Remove AC_DEFINE_UNQUOTED for the rest of the directories * All: Update to reflect above
This commit is contained in:
parent
2dd5ccf964
commit
30389610b4
15 changed files with 99 additions and 49 deletions
|
@ -253,7 +253,7 @@ get_known_savers (void)
|
|||
|
||||
if (known_savers) return known_savers;
|
||||
|
||||
parent_dir = opendir (GNOMECC_SCREENSAVERS_DIR "/screensavers");
|
||||
parent_dir = opendir (GNOMECC_DATA_DIR "/screensavers");
|
||||
if (parent_dir == NULL)
|
||||
return NULL;
|
||||
|
||||
|
@ -262,8 +262,7 @@ get_known_savers (void)
|
|||
while ((child_dir = readdir (parent_dir)) != NULL) {
|
||||
if (child_dir->d_name[0] != '.') {
|
||||
fullpath = g_concat_dir_and_file
|
||||
(GNOMECC_SCREENSAVERS_DIR "/screensavers",
|
||||
child_dir->d_name);
|
||||
(GNOMECC_DATA_DIR "/screensavers", child_dir->d_name);
|
||||
|
||||
if (stat (fullpath, &filedata) != -1) {
|
||||
if (!S_ISDIR (filedata.st_mode)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue