Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
39e246e7
Commit
39e246e7
authored
May 17, 2013
by
KO Myung-Hun
Committed by
Rafaël Carré
May 17, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vlccore: search HOME env var for user dirs on OS/2
Signed-off-by:
Rafaël Carré
<
funman@videolan.org
>
parent
d9319dc8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
src/os2/dirs.c
src/os2/dirs.c
+10
-1
No files found.
src/os2/dirs.c
View file @
39e246e7
...
@@ -64,6 +64,15 @@ char *config_GetDataDir (void)
...
@@ -64,6 +64,15 @@ char *config_GetDataDir (void)
return
datadir
;
return
datadir
;
}
}
static
char
*
config_GetHomeDir
(
void
)
{
const
char
*
home
=
getenv
(
"HOME"
);
if
(
home
!=
NULL
)
return
FromLocaleDup
(
home
);
return
config_GetLibDir
();
}
char
*
config_GetUserDir
(
vlc_userdir_t
type
)
char
*
config_GetUserDir
(
vlc_userdir_t
type
)
{
{
switch
(
type
)
switch
(
type
)
...
@@ -82,5 +91,5 @@ char *config_GetUserDir (vlc_userdir_t type)
...
@@ -82,5 +91,5 @@ char *config_GetUserDir (vlc_userdir_t type)
case
VLC_VIDEOS_DIR
:
case
VLC_VIDEOS_DIR
:
break
;
break
;
}
}
return
config_Get
Lib
Dir
();
return
config_Get
Home
Dir
();
}
}
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