Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
afe626fb
Commit
afe626fb
authored
Jun 30, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winemenubuilder: Use spawnvp() instead of system() to launch the xdg update scripts.
parent
5f230064
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
22 deletions
+9
-22
winemenubuilder.c
programs/winemenubuilder/winemenubuilder.c
+9
-22
No files found.
programs/winemenubuilder/winemenubuilder.c
View file @
afe626fb
...
...
@@ -2525,29 +2525,16 @@ static void RefreshFileTypeAssociations(void)
hasChanged
|=
cleanup_associations
();
if
(
hasChanged
)
{
char
*
command
=
heap_printf
(
"update-mime-database %s"
,
mime_dir
);
if
(
command
)
{
system
(
command
);
HeapFree
(
GetProcessHeap
(),
0
,
command
);
}
else
{
WINE_ERR
(
"out of memory
\n
"
);
goto
end
;
}
const
char
*
argv
[
3
];
command
=
heap_printf
(
"update-desktop-database %s/applications"
,
xdg_data_dir
);
if
(
command
)
{
system
(
command
);
HeapFree
(
GetProcessHeap
(),
0
,
command
);
}
else
{
WINE_ERR
(
"out of memory
\n
"
);
goto
end
;
}
argv
[
0
]
=
"update-mime-database"
;
argv
[
1
]
=
mime_dir
;
argv
[
2
]
=
NULL
;
spawnvp
(
_P_NOWAIT
,
argv
[
0
],
argv
);
argv
[
0
]
=
"update-desktop-database"
;
argv
[
1
]
=
applications_dir
;
spawnvp
(
_P_NOWAIT
,
argv
[
0
],
argv
);
}
end:
...
...
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