Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
tg
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
tg
Commits
09bb322d
Commit
09bb322d
authored
Oct 10, 2014
by
mk-pmb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
When creating a new config, determine config dir by default strategy.
parent
fab13d77
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
main.c
main.c
+6
-2
No files found.
main.c
View file @
09bb322d
...
...
@@ -239,11 +239,15 @@ void check_type_sizes (void) {
void
running_for_first_time
(
void
)
{
check_type_sizes
();
if
(
config_filename
)
{
if
(
!
str_empty
(
config_filename
)
)
{
return
;
// Do not create custom config file
}
tasprintf
(
&
config_filename
,
"%s/%s/%s"
,
get_home_directory
(),
CONFIG_DIRECTORY
,
CONFIG_FILE
);
if
(
str_empty
(
config_directory
))
{
config_directory
=
get_config_directory
();
}
tasprintf
(
&
config_filename
,
"%s/%s"
,
config_directory
,
CONFIG_FILE
);
config_filename
=
make_full_path
(
config_filename
);
// printf ("I: config file=[%s]\n", config_filename);
int
config_file_fd
;
char
*
config_directory
=
get_config_directory
();
...
...
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