Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
821f7242
Commit
821f7242
authored
Aug 24, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cosmetics
parent
08d89300
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
src/config/dirs.c
src/config/dirs.c
+12
-12
No files found.
src/config/dirs.c
View file @
821f7242
...
...
@@ -215,14 +215,7 @@ static char *config_GetHomeDir (void)
#endif
}
char
*
config_GetUserDir
(
vlc_userdir_t
type
)
{
char
*
home
=
config_GetHomeDir
();
(
void
)
type
;
return
home
;
}
static
char
*
config_GetFooDir
(
const
char
*
xdg_name
,
const
char
*
xdg_default
)
static
char
*
config_GetAppDir
(
const
char
*
xdg_name
,
const
char
*
xdg_default
)
{
char
*
psz_dir
;
#if defined(WIN32) || defined(__APPLE__) || defined(SYS_BEOS)
...
...
@@ -246,7 +239,7 @@ static char *config_GetFooDir (const char *xdg_name, const char *xdg_default)
return
psz_dir
;
}
psz_home
=
config_Get
UserDir
(
VLC_HOME_DIR
);
psz_home
=
config_Get
HomeDir
(
);
if
(
psz_home
==
NULL
||
asprintf
(
&
psz_dir
,
"%s/%s/vlc"
,
psz_home
,
xdg_default
)
==
-
1
)
psz_dir
=
NULL
;
...
...
@@ -260,7 +253,7 @@ static char *config_GetFooDir (const char *xdg_name, const char *xdg_default)
*/
char
*
config_GetUserConfDir
(
void
)
{
return
config_Get
Foo
Dir
(
"CONFIG"
,
".config"
);
return
config_Get
App
Dir
(
"CONFIG"
,
".config"
);
}
/**
...
...
@@ -269,7 +262,7 @@ char *config_GetUserConfDir( void )
*/
char
*
config_GetUserDataDir
(
void
)
{
return
config_Get
Foo
Dir
(
"DATA"
,
".local/share"
);
return
config_Get
App
Dir
(
"DATA"
,
".local/share"
);
}
/**
...
...
@@ -287,6 +280,13 @@ char *config_GetCacheDir( void )
return
psz_dir
;
#else
return
config_Get
Foo
Dir
(
"CACHE"
,
".cache"
);
return
config_Get
App
Dir
(
"CACHE"
,
".cache"
);
#endif
}
char
*
config_GetUserDir
(
vlc_userdir_t
type
)
{
char
*
home
=
config_GetHomeDir
();
(
void
)
type
;
return
home
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment