Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
b25b7890
Commit
b25b7890
authored
Jan 06, 2010
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dirs_macos: When running from command line there is no bundle identifier by default.
parent
81dc52be
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
4 deletions
+16
-4
src/config/dirs_macos.c
src/config/dirs_macos.c
+16
-4
No files found.
src/config/dirs_macos.c
View file @
b25b7890
...
@@ -90,13 +90,25 @@ static char *getAppDependentDir(vlc_userdir_t type)
...
@@ -90,13 +90,25 @@ static char *getAppDependentDir(vlc_userdir_t type)
break
;
break
;
}
}
// Default fallback
const
char
*
name
=
"org.videolan.vlc"
;
CFBundleRef
mainBundle
=
CFBundleGetMainBundle
();
CFBundleRef
mainBundle
=
CFBundleGetMainBundle
();
CFStringRef
identifierAsNS
=
CFBundleGetIdentifier
(
mainBundle
);
if
(
mainBundle
)
const
char
*
identifier
=
CFStringGetCStringPtr
(
identifierAsNS
,
kCFStringEncodingUTF8
);
{
CFStringRef
identifierAsNS
=
CFBundleGetIdentifier
(
mainBundle
);
if
(
identifierAsNS
)
{
char
identifier
[
256
];
Boolean
ret
=
CFStringGetCString
(
identifierAsNS
,
identifier
,
sizeof
(
identifier
),
kCFStringEncodingUTF8
);
if
(
ret
)
name
=
identifier
;
}
}
char
*
psz_parent
=
config_GetHomeDir
();
char
*
psz_parent
=
config_GetHomeDir
();
char
*
psz_dir
;
char
*
psz_dir
;
if
(
asprintf
(
&
psz_dir
,
psz_path
,
psz_parent
,
identifier
)
==
-
1
)
if
(
asprintf
(
&
psz_dir
,
psz_path
,
psz_parent
,
name
)
==
-
1
)
psz_dir
=
NULL
;
psz_dir
=
NULL
;
free
(
psz_parent
);
free
(
psz_parent
);
...
...
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