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
3603478b
Commit
3603478b
authored
Nov 13, 2020
by
Rémi Bernon
Committed by
Alexandre Julliard
Nov 13, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winemenubuilder: Only extract icons when association changed.
Signed-off-by:
Rémi Bernon
<
rbernon@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a600d7ec
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
winemenubuilder.c
programs/winemenubuilder/winemenubuilder.c
+7
-1
No files found.
programs/winemenubuilder/winemenubuilder.c
View file @
3603478b
...
@@ -2657,7 +2657,7 @@ static BOOL generate_associations(const char *xdg_data_home, const char *package
...
@@ -2657,7 +2657,7 @@ static BOOL generate_associations(const char *xdg_data_home, const char *package
executableW
=
assoc_query
(
ASSOCSTR_EXECUTABLE
,
extensionW
,
openW
);
executableW
=
assoc_query
(
ASSOCSTR_EXECUTABLE
,
extensionW
,
openW
);
if
(
executableW
)
if
(
executableW
)
openWithIconA
=
extract_icon
(
executableW
,
0
,
NULL
,
FALSE
);
openWithIconA
=
compute_native_identifier
(
0
,
executableW
);
friendlyAppNameW
=
assoc_query
(
ASSOCSTR_FRIENDLYAPPNAME
,
extensionW
,
openW
);
friendlyAppNameW
=
assoc_query
(
ASSOCSTR_FRIENDLYAPPNAME
,
extensionW
,
openW
);
if
(
friendlyAppNameW
)
if
(
friendlyAppNameW
)
...
@@ -2730,6 +2730,12 @@ static BOOL generate_associations(const char *xdg_data_home, const char *package
...
@@ -2730,6 +2730,12 @@ static BOOL generate_associations(const char *xdg_data_home, const char *package
}
}
}
}
if
(
hasChanged
&&
openWithIconA
)
{
char
*
outputIconA
=
extract_icon
(
executableW
,
0
,
openWithIconA
,
FALSE
);
HeapFree
(
GetProcessHeap
(),
0
,
outputIconA
);
}
end:
end:
HeapFree
(
GetProcessHeap
(),
0
,
extensionA
);
HeapFree
(
GetProcessHeap
(),
0
,
extensionA
);
HeapFree
(
GetProcessHeap
(),
0
,
commandW
);
HeapFree
(
GetProcessHeap
(),
0
,
commandW
);
...
...
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